July 2017
Intermediate to advanced
456 pages
11h 32m
English
A migration processor extends the \Drupal\migrate\ProcessPluginBase class. It expects to implement the transform() function and return the result based on the configuration provided. For example:
<?php namespace Drupal\migrate\Plugin\migrate\process; use Drupal\migrate\MigrateException; use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\ProcessPluginBase; use Drupal\migrate\Row; /** * Concatenates the strings in the current value. * * @MigrateProcessPlugin( * id = "concat", * handle_multiples = TRUE * ) */ class Concat extends ProcessPluginBase { /** * {@inheritdoc} * * Concatenates the strings in the current value. */ public function transform($value, MigrateExecutableInterface $migrate_executable, ...Read now
Unlock full access