public function AllowedHtmlManager::getGroupedDefinitions in Markdown 8.2
2 calls to AllowedHtmlManager::getGroupedDefinitions()
- AllowedHtmlManager::appliesTo in src/
PluginManager/ AllowedHtmlManager.php - Retrieves plugins that apply to a parser and active theme.
- AllowedHtmlManager::getType in src/
PluginManager/ AllowedHtmlManager.php - Retrieves plugins matching a specific type.
File
- src/
PluginManager/ AllowedHtmlManager.php, line 279
Class
- AllowedHtmlManager
- Markdown Allowed HTML Plugin Manager.
Namespace
Drupal\markdown\PluginManagerCode
public function getGroupedDefinitions(array $definitions = NULL, $label_key = 'label') {
$definitions = $this
->getSortedDefinitions(isset($definitions) ? $definitions : $this
->installedDefinitions(), $label_key);
$grouped_definitions = [];
foreach ($definitions as $id => $definition) {
$grouped_definitions[(string) $definition['type']][$id] = $definition;
}
return $grouped_definitions;
}