function MigrateFieldPluginManager::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.