You are here

public function InstallablePluginManager::getDefinitions in Markdown 8.2

Gets the definition of all plugins for this type.

Return value

mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.

Overrides DefaultPluginManager::getDefinitions

See also

\Drupal\Core\Plugin\FilteredPluginManagerInterface::getFilteredDefinitions()

4 calls to InstallablePluginManager::getDefinitions()
InstallablePluginManager::all in src/PluginManager/InstallablePluginManager.php
Retrieves all registered plugins.
InstallablePluginManager::getDefinitionByClassName in src/PluginManager/InstallablePluginManager.php
Retrieves a definition by class name.
InstallablePluginManager::getDefinitionByLibraryId in src/PluginManager/InstallablePluginManager.php
Retrieves a definition by library identifier.
InstallablePluginManager::installedDefinitions in src/PluginManager/InstallablePluginManager.php
Retrieves installed plugin definitions.

File

src/PluginManager/InstallablePluginManager.php, line 351

Class

InstallablePluginManager
Installable Plugin Manager.

Namespace

Drupal\markdown\PluginManager

Code

public function getDefinitions($includeFallback = TRUE) {
  $definitions = $this
    ->getRuntimeDefinitions();
  if ($includeFallback) {
    return $definitions;
  }
  unset($definitions[$this
    ->getFallbackPluginId()]);
  return $definitions;
}