You are here

public function DefaultPluginManager::processDefinition in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/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.

1 call to DefaultPluginManager::processDefinition()
DefaultPluginManager::findDefinitions in lib/Drupal/Component/Plugin/DefaultPluginManager.php
Finds plugin definitions.

File

lib/Drupal/Component/Plugin/DefaultPluginManager.php, line 270
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);
  }
}