You are here

public function LinkField::defineValueProcessPipeline in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/link/src/Plugin/migrate/field/d6/LinkField.php \Drupal\link\Plugin\migrate\field\d6\LinkField::defineValueProcessPipeline()
  2. 9 core/modules/link/src/Plugin/migrate/field/d6/LinkField.php \Drupal\link\Plugin\migrate\field\d6\LinkField::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/link/src/Plugin/migrate/field/d6/LinkField.php, line 42

Class

LinkField
Plugin annotation @MigrateField( id = "link", core = {6}, type_map = { "link" = "link", }, source_module = "link", destination_module = "link" )

Namespace

Drupal\link\Plugin\migrate\field\d6

Code

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