protected function AllowedHtmlManager::alterDefinitions in Markdown 8.2
Invokes the hook to alter the definitions if the alter hook is set.
Parameters
$definitions: The discovered plugin definitions.
Overrides InstallablePluginManager::alterDefinitions
File
- src/
PluginManager/ AllowedHtmlManager.php, line 119
Class
- AllowedHtmlManager
- Markdown Allowed HTML Plugin Manager.
Namespace
Drupal\markdown\PluginManagerCode
protected function alterDefinitions(&$definitions, $runtime = FALSE) {
foreach ($definitions as $definition) {
if ($definition instanceof InstallablePlugin) {
$this
->alterDefinition($definition, $runtime);
}
}
if ($hook = $this->alterHook) {
if ($runtime) {
$hook = "_runtime";
}
$this->moduleHandler
->alter($hook, $definitions);
$this->themeManager
->alter($hook, $definitions);
}
}