You are here

public function ConfigMapperManager::processDefinition in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/ConfigMapperManager.php \Drupal\config_translation\ConfigMapperManager::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

1 call to ConfigMapperManager::processDefinition()
ConfigMapperManager::findDefinitions in core/modules/config_translation/src/ConfigMapperManager.php
Finds plugin definitions.

File

core/modules/config_translation/src/ConfigMapperManager.php, line 132
Contains \Drupal\config_translation\ConfigMapperManager.

Class

ConfigMapperManager
Manages plugins for configuration translation mappers.

Namespace

Drupal\config_translation

Code

public function processDefinition(&$definition, $plugin_id) {
  parent::processDefinition($definition, $plugin_id);
  if (!isset($definition['base_route_name'])) {
    throw new InvalidPluginDefinitionException($plugin_id, "The plugin definition of the mapper '{$plugin_id}' does not contain a base_route_name.");
  }
}