protected function DefaultPluginManager::alterDefinitions in Plug 7
Invokes the hook to alter the definitions if the alter hook is set.
Parameters
$definitions: The discovered plugin defintions.
1 call to DefaultPluginManager::alterDefinitions()
- DefaultPluginManager::findDefinitions in lib/
Drupal/ Core/ Plugin/ DefaultPluginManager.php - Finds plugin definitions.
File
- lib/
Drupal/ Core/ Plugin/ DefaultPluginManager.php, line 309 - Contains \Drupal\Core\Plugin\DefaultPluginManager.
Class
- DefaultPluginManager
- Base class for plugin managers.
Namespace
Drupal\Core\PluginCode
protected function alterDefinitions(&$definitions) {
if ($this->alterHook) {
drupal_alter($this->alterHook, $definitions);
}
}