public function DefaultPluginManager::processDefinition in Service Container 7.2
Same name and namespace in other branches
- 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\PluginCode
public function processDefinition(&$definition, $plugin_id) {
if (!empty($this->defaults) && is_array($this->defaults)) {
$definition = NestedArray::mergeDeep($this->defaults, $definition);
}
}