You are here

public function ExtensionInterface::register in Markdown 8.2

Allows the extension to register itself with the CommonMark Environment.

Parameters

\League\CommonMark\Environment\ConfigurableEnvironmentInterface|\League\CommonMark\ConfigurableEnvironmentInterface|\League\CommonMark\Environment $environment: The CommonMark environment. The exact object passed here has changed namespaces over various versions. It is unlikely to be incompatible, however, explicit typechecking via instanceof may be needed.

1 method overrides ExtensionInterface::register()
BaseExtension::register in src/Plugin/Markdown/CommonMark/BaseExtension.php
Allows the extension to register itself with the CommonMark Environment.

File

src/Plugin/Markdown/CommonMark/ExtensionInterface.php, line 20

Class

ExtensionInterface
Interface for CommonMark Extensions.

Namespace

Drupal\markdown\Plugin\Markdown\CommonMark

Code

public function register($environment);