ConfigMapperManager::processDefinition

public ConfigMapperManager::processDefinition(&$definition, $plugin_id)

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/config_translation/src/ConfigMapperManager.php, line 128

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.");
  }
}
doc_Drupal
2016-10-29 08:54:12
Comments
Leave a Comment

Please login to continue.