projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
web
/
core
/
modules
/
telephone
/
src
/
Plugin
/
migrate
/
field
/
d7
/
PhoneField.php
diff --git
a/web/core/modules/telephone/src/Plugin/migrate/field/d7/PhoneField.php
b/web/core/modules/telephone/src/Plugin/migrate/field/d7/PhoneField.php
index 3164cecdca33301d8021070dc5e65643e7cfecde..4a9d8cd4e005edc1b448572e8f08f5f6f4f4cb42 100644
(file)
--- a/
web/core/modules/telephone/src/Plugin/migrate/field/d7/PhoneField.php
+++ b/
web/core/modules/telephone/src/Plugin/migrate/field/d7/PhoneField.php
@@
-10,7
+10,20
@@
use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
* type_map = {
* "phone" = "telephone",
* },
* type_map = {
* "phone" = "telephone",
* },
- * core = {7}
+ * core = {7},
+ * source_module = "phone",
+ * destination_module = "telephone"
* )
*/
* )
*/
-class PhoneField extends FieldPluginBase {}
+class PhoneField extends FieldPluginBase {
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getFieldFormatterMap() {
+ return [
+ 'phone' => 'basic_string',
+ ];
+ }
+
+}