You are here

public function OfficeHoursField::defineValueProcessPipeline in Office Hours 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

1 call to OfficeHoursField::defineValueProcessPipeline()
OfficeHoursField::processFieldValues in src/Plugin/migrate/field/OfficeHoursField.php
Defines the process pipeline for field values.

File

src/Plugin/migrate/field/OfficeHoursField.php, line 40

Class

OfficeHoursField
Plugin annotation @MigrateCckField( id = "office_hours_field", core = {7}, source_module = "office_hours", destination_module = "office_hours", type_map = { "office_hours" = "office_hours" } )

Namespace

Drupal\office_hours\Plugin\migrate\field

Code

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