Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / telephone / src / Plugin / migrate / field / d7 / PhoneField.php
1 <?php
2
3 namespace Drupal\telephone\Plugin\migrate\field\d7;
4
5 use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
6
7 /**
8  * @MigrateField(
9  *   id = "phone",
10  *   type_map = {
11  *     "phone" = "telephone",
12  *   },
13  *   core = {7},
14  *   source_module = "phone",
15  *   destination_module = "telephone"
16  * )
17  */
18 class PhoneField extends FieldPluginBase {
19
20   /**
21    * {@inheritdoc}
22    */
23   public function getFieldFormatterMap() {
24     return [
25       'phone' => 'basic_string',
26     ];
27   }
28
29 }