X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftelephone%2Fsrc%2FPlugin%2Fmigrate%2Ffield%2Fd7%2FPhoneField.php;fp=web%2Fcore%2Fmodules%2Ftelephone%2Fsrc%2FPlugin%2Fmigrate%2Ffield%2Fd7%2FPhoneField.php;h=4a9d8cd4e005edc1b448572e8f08f5f6f4f4cb42;hp=3164cecdca33301d8021070dc5e65643e7cfecde;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 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 3164cecdc..4a9d8cd4e 100644 --- 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", * }, - * 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', + ]; + } + +}