You are here

public function MigrateFieldPluginManager::processDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager::processDefinition()
  2. 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\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);
    }
  }
}