function MigrateFieldPluginManager::processDefinition

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager::processDefinition()
  2. 8.9.x core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager::processDefinition()
  3. 11.x core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager::processDefinition()

Overrides DefaultPluginManager::processDefinition

File

core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php, line 80

Class

MigrateFieldPluginManager
Plugin manager for migrate field plugins.

Namespace

Drupal\migrate_drupal\Plugin

Code

public function processDefinition(&$definition, $plugin_id) {
    parent::processDefinition($definition, $plugin_id);
    foreach ([
        'core',
        'source_module',
        'destination_module',
    ] as $required_property) {
        if (empty($definition[$required_property])) {
            throw new BadPluginDefinitionException($plugin_id, $required_property);
        }
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.