function Email::defineValueProcessPipeline

Same name in other branches
  1. 8.9.x core/modules/field/src/Plugin/migrate/field/Email.php \Drupal\field\Plugin\migrate\field\Email::defineValueProcessPipeline()
  2. 10 core/modules/field/src/Plugin/migrate/field/Email.php \Drupal\field\Plugin\migrate\field\Email::defineValueProcessPipeline()
  3. 11.x core/modules/field/src/Plugin/migrate/field/Email.php \Drupal\field\Plugin\migrate\field\Email::defineValueProcessPipeline()

Overrides FieldPluginBase::defineValueProcessPipeline

File

core/modules/field/src/Plugin/migrate/field/Email.php, line 53

Class

Email
MigrateField Plugin for Drupal 6 and 7 email fields.

Namespace

Drupal\field\Plugin\migrate\field

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.