You are here

public function CckFieldPluginBase::processFieldWidget 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::processFieldWidget()

Apply any custom processing to the field widget migration.

Parameters

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

Overrides MigrateCckFieldInterface::processFieldWidget

File

core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php, line 45
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 processFieldWidget(MigrationInterface $migration) {
  $process = [];
  foreach ($this
    ->getFieldWidgetMap() as $source_widget => $destination_widget) {
    $process['type']['map'][$source_widget] = $destination_widget;
  }
  $migration
    ->mergeProcessOfProperty('options/type', $process);
}