protected function IconBasePluginManager::alterDefinitions in Icon API 8
Invokes the hook to alter the definitions if the alter hook is set.
Parameters
$definitions: The discovered plugin definitions.
Overrides DefaultPluginManager::alterDefinitions
File
- src/
IconBasePluginManager.php, line 103
Class
Namespace
Drupal\iconCode
protected function alterDefinitions(&$definitions) {
if ($this->alterHook) {
$this->moduleHandler
->alter($this->alterHook, $definitions);
$this->themeManager
->alter($this->alterHook, $definitions);
}
}