public function EmvideoField::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/ EmvideoField.php, line 51
Class
- EmvideoField
- Plugin to migrate from the Drupal 6 emfield 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' => 'embed',
],
];
$migration
->mergeProcessOfProperty($field_name, $process);
}