You are here

public function DefaultPluginManager::processDefinition in Plug 7

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/Core/Plugin/DefaultPluginManager.php
Finds plugin definitions.

File

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

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

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