You are here

public function FieldPluginBase::defineValueProcessPipeline in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::defineValueProcessPipeline()
  2. 10 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

1 call to FieldPluginBase::defineValueProcessPipeline()
FieldPluginBase::processFieldValues in core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php
Defines the process pipeline for field values.
11 methods override FieldPluginBase::defineValueProcessPipeline()
CckFieldPluginBase::defineValueProcessPipeline in core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php
Apply any custom processing to the field bundle migrations.
DateField::defineValueProcessPipeline in core/modules/datetime/src/Plugin/migrate/field/DateField.php
Apply any custom processing to the field bundle migrations.
DateField::defineValueProcessPipeline in core/modules/datetime/src/Plugin/migrate/field/d6/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.

... See full list

File

core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php, line 167

Class

FieldPluginBase
The base class for all field plugins.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field

Code

public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
  $process = [
    'plugin' => 'get',
    'source' => $field_name,
  ];
  $migration
    ->mergeProcessOfProperty($field_name, $process);
}