public function VideoEmbedField::defineValueProcessPipeline in Video Embed Field 8
Apply any custom processing to the field bundle migrations.
Parameters
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration entity.
string $field_name: The field name we're processing the value for.
array $data: The array of field data from FieldValues::fieldData().
Overrides FieldPluginBase::defineValueProcessPipeline
File
- src/
Plugin/ migrate/ cckfield/ VideoEmbedField.php, line 51
Class
- VideoEmbedField
- Plugin to migrate from the Drupal 7 video_embed_field module.
Namespace
Drupal\video_embed_field\Plugin\migrate\cckfieldCode
public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'sub_process',
'source' => $field_name,
'process' => [
'value' => 'video_url',
],
];
$migration
->mergeProcessOfProperty($field_name, $process);
}