Same name in other branches
  1. 8.x-2.x src/Plugin/migrate/field/ColorField.php \Drupal\color_field\Plugin\migrate\field\ColorField::defineValueProcessPipeline()

File

src/Plugin/migrate/field/ColorField.php, line 28

Class

ColorField
Field Plugin for color field migrations.

Namespace

Drupal\color_field\Plugin\migrate\field

Code

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