You are here

public function TimeZoneField::processFieldValues in Time Zone Field 8

Defines the process pipeline for field values.

Overrides FieldPluginBase::processFieldValues

Deprecated

in drupal:8.6.0 and is removed from drupal:9.0.0. Use defineValueProcessPipeline() instead.

See also

https://www.drupal.org/node/2944598

::defineValueProcessPipeline()

File

src/Plugin/migrate/field/TimeZoneField.php, line 47

Class

TimeZoneField
Migration plugin for time zone field (tzfield).

Namespace

Drupal\tzfield\Plugin\migrate\field

Code

public function processFieldValues(MigrationInterface $migration, $field_name, $data) {
  $process = [
    'plugin' => 'sub_process',
    'source' => $field_name,
    'process' => [
      'value' => 'value',
    ],
  ];
  $migration
    ->setProcessOfProperty($field_name, $process);
}