protected function BootstrapLayoutsPluginManager::alterDefinitions in Bootstrap Layouts 8.5
Same name and namespace in other branches
- 8.4 src/BootstrapLayoutsPluginManager.php \Drupal\bootstrap_layouts\BootstrapLayoutsPluginManager::alterDefinitions()
Invokes the hook to alter the definitions if the alter hook is set.
Parameters
$definitions: The discovered plugin definitions.
Overrides DefaultPluginManager::alterDefinitions
File
- src/
BootstrapLayoutsPluginManager.php, line 103
Class
Namespace
Drupal\bootstrap_layoutsCode
protected function alterDefinitions(&$definitions) {
if ($this->alterHook) {
$this->moduleHandler
->alter($this->alterHook, $definitions);
$this->themeManager
->alter($this->alterHook, $definitions);
}
}