You are here

public function BaseExtensibleParser::extension in Markdown 8.2

Retrieves a specific extension plugin instance.

Parameters

string $extensionId: The identifier of the extension plugin instance to return.

Return value

\Drupal\markdown\Plugin\Markdown\ExtensionInterface|null A markdown extension instance or NULL if it doesn't exist.

Overrides ExtensibleParserInterface::extension

File

src/Plugin/Markdown/BaseExtensibleParser.php, line 44

Class

BaseExtensibleParser
Base class for extensible markdown parsers.

Namespace

Drupal\markdown\Plugin\Markdown

Code

public function extension($extensionId) {
  return $this
    ->extensions()
    ->get($extensionId);
}