public function InstallablePluginManager::installed in Markdown 8.2
Retrieves all installed plugins.
Parameters
array $configuration: The configuration used to create plugin instances.
Return value
\Drupal\markdown\Plugin\Markdown\InstallablePluginInterface[] An array of installed plugins instances, keyed by plugin identifier.
Overrides InstallablePluginManagerInterface::installed
1 call to InstallablePluginManager::installed()
- ParserManager::getDefaultParser in src/
PluginManager/ ParserManager.php - Retrieves the site-wide default MarkdownParser plugin.
File
- src/
PluginManager/ InstallablePluginManager.php, line 437
Class
- InstallablePluginManager
- Installable Plugin Manager.
Namespace
Drupal\markdown\PluginManagerCode
public function installed(array $configuration = []) {
return array_map(function (InstallablePlugin $definition) use ($configuration) {
$id = $definition
->getId();
return $this
->createInstance($id, isset($configuration[$id]) ? $configuration[$id] : $configuration);
}, $this
->installedDefinitions());
}