Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Email.php

function Email::defineValueProcessPipeline

Overrides FieldPluginBase::defineValueProcessPipeline

File

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

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal