public function MigrateFieldPluginManager::processDefinition in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager::processDefinition()
Performs extra processing on plugin definitions.
By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method.
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\PluginCode
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);
}
}
}