public function Email::defineValueProcessPipeline in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field/src/Plugin/migrate/field/Email.php \Drupal\field\Plugin\migrate\field\Email::defineValueProcessPipeline()
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
- core/
modules/ field/ src/ Plugin/ migrate/ field/ Email.php, line 51
Class
- MigrateField Plugin for Drupal 6 and 7 email fields.
Namespace
Drupal\field\Plugin\migrate\fieldCode
public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'sub_process',
'source' => $field_name,
'process' => [
'value' => 'email',
],
];
$migration
->setProcessOfProperty($field_name, $process);
}