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

Breadcrumb

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

function ImageField::defineValueProcessPipeline

Overrides FieldPluginBase::defineValueProcessPipeline

File

core/modules/image/src/Plugin/migrate/field/d7/ImageField.php, line 30

Class

ImageField

Namespace

Drupal\image\Plugin\migrate\field\d7

Code

public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
    $process = [
        'plugin' => 'sub_process',
        'source' => $field_name,
        'process' => [
            'target_id' => 'fid',
            'alt' => 'alt',
            'title' => 'title',
            'width' => 'width',
            'height' => 'height',
        ],
    ];
    $migration->mergeProcessOfProperty($field_name, $process);
}

API Navigation

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