You are here

public function MarkdownExtensionManagerInterface::getExtensions in Markdown 3.0.x

Retrieves MarkdownExtension plugins.

Parameters

string $parser: Optional. A specific parser's extensions to retrieve. If not set, all available extensions are returned, regardless of the parser.

bool $enabled: Flag indicating whether to filter results based on enabled status. By default, all extensions are returned. If set to TRUE, only enabled extensions are returned. If set to FALSE, only disabled extensions are returned.

Return value

\Drupal\markdown\Plugin\Markdown\Extension\MarkdownExtensionInterface[] An array of MarkdownExtension plugins.

1 method overrides MarkdownExtensionManagerInterface::getExtensions()
MarkdownExtensionManager::getExtensions in src/MarkdownExtensionManager.php
Retrieves MarkdownExtension plugins.

File

src/MarkdownExtensionManagerInterface.php, line 33

Class

MarkdownExtensionManagerInterface
Interface MarkdownExtensionsInterface.

Namespace

Drupal\markdown

Code

public function getExtensions($parser = NULL, $enabled = NULL);