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 7 video_embed_field module.
13 * id = "video_embed_field",
17 class VideoEmbedField 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_embed_field' => 'video_embed_field_video',
33 'video_embed_field_thumbnail' => 'video_embed_field_thumbnail',
40 public function getFieldWidgetMap() {
42 'video_embed_field_video' => 'video_embed_field_textfield',
49 public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
51 'plugin' => 'iterator',
52 'source' => $field_name,
54 'value' => 'video_url',
57 $migration->mergeProcessOfProperty($field_name, $process);