You are here

public function DefaultPluginManager::processDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::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.

10 calls to DefaultPluginManager::processDefinition()
BlockManager::processDefinition in core/lib/Drupal/Core/Block/BlockManager.php
Performs extra processing on plugin definitions.
BreakpointManager::processDefinition in core/modules/breakpoint/src/BreakpointManager.php
Performs extra processing on plugin definitions.
CategorizingPluginManager::processDefinition in core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php
Performs extra processing on plugin definitions.
ConfigMapperManager::processDefinition in core/modules/config_translation/src/ConfigMapperManager.php
Performs extra processing on plugin definitions.
ContextualLinkManager::processDefinition in core/lib/Drupal/Core/Menu/ContextualLinkManager.php
Performs extra processing on plugin definitions.

... See full list

10 methods override DefaultPluginManager::processDefinition()
BlockManager::processDefinition in core/lib/Drupal/Core/Block/BlockManager.php
Performs extra processing on plugin definitions.
BreakpointManager::processDefinition in core/modules/breakpoint/src/BreakpointManager.php
Performs extra processing on plugin definitions.
CategorizingPluginManager::processDefinition in core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php
Performs extra processing on plugin definitions.
ConfigMapperManager::processDefinition in core/modules/config_translation/src/ConfigMapperManager.php
Performs extra processing on plugin definitions.
ConstraintManager::processDefinition in core/lib/Drupal/Core/Validation/ConstraintManager.php
Performs extra processing on plugin definitions.

... See full list

File

core/lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 234
Contains \Drupal\Core\Plugin\DefaultPluginManager.

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

public function processDefinition(&$definition, $plugin_id) {
  if (!empty($this->defaults) && is_array($this->defaults)) {
    $definition = NestedArray::mergeDeep($this->defaults, $definition);
  }
}