You are here

public function CckFieldPluginBase::processFieldFormatter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase::processFieldFormatter()

Apply any custom processing to the field formatter migration.

Parameters

\Drupal\migrate\Entity\MigrationInterface $migration: The migration entity.

Overrides MigrateCckFieldInterface::processFieldFormatter

File

core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php, line 66
Contains \Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase.

Class

CckFieldPluginBase
The base class for all cck field plugins.

Namespace

Drupal\migrate_drupal\Plugin\migrate\cckfield

Code

public function processFieldFormatter(MigrationInterface $migration) {
  $process = [];
  foreach ($this
    ->getFieldFormatterMap() as $source_format => $destination_format) {
    $process[0]['map'][$this->pluginId][$source_format] = $destination_format;
  }
  $migration
    ->mergeProcessOfProperty('options/type', $process);
}