public function FieldPluginBase::defineValueProcessPipeline in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::defineValueProcessPipeline()
- 9 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::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 MigrateFieldInterface::defineValueProcessPipeline
8 methods override FieldPluginBase::defineValueProcessPipeline()
- DateField::defineValueProcessPipeline in core/
modules/ datetime/ src/ Plugin/ migrate/ field/ DateField.php - Apply any custom processing to the field bundle migrations.
- Email::defineValueProcessPipeline in core/
modules/ field/ src/ Plugin/ migrate/ field/ Email.php - Apply any custom processing to the field bundle migrations.
- FileField::defineValueProcessPipeline in core/
modules/ file/ src/ Plugin/ migrate/ field/ d6/ FileField.php - Apply any custom processing to the field bundle migrations.
- ImageField::defineValueProcessPipeline in core/
modules/ image/ src/ Plugin/ migrate/ field/ d7/ ImageField.php - Apply any custom processing to the field bundle migrations.
- LinkField::defineValueProcessPipeline in core/
modules/ link/ src/ Plugin/ migrate/ field/ d6/ LinkField.php - Apply any custom processing to the field bundle migrations.
File
- core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ field/ FieldPluginBase.php, line 97
Class
- FieldPluginBase
- The base class for all field plugins.
Namespace
Drupal\migrate_drupal\Plugin\migrate\fieldCode
public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'get',
'source' => $field_name,
];
$migration
->mergeProcessOfProperty($field_name, $process);
}