3 namespace Drupal\video_embed_field\Plugin\migrate\cckfield;
5 use Drupal\migrate\Plugin\MigrationInterface;
6 use Drupal\migrate\Row;
7 use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
10 * Plugin to migrate from the Drupal 6 emfield module.
17 class EmvideoField extends CckFieldPluginBase {
22 public function getFieldType(Row $row) {
23 return 'video_embed_field';
29 public function getFieldFormatterMap() {
31 'default' => 'video_embed_field_video',
32 'video' => 'video_embed_field_video',
33 'thumbnail' => 'video_embed_field_thumbnail',
40 public function getFieldWidgetMap() {
42 'emvideo_textfields' => 'video_embed_field_textfield',
49 public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
51 'plugin' => 'iterator',
52 'source' => $field_name,
57 $migration->mergeProcessOfProperty($field_name, $process);