You are here

public function MentionExtension::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.

Overrides BaseExtension::register

File

src/Plugin/Markdown/CommonMark/Extension/MentionExtension.php, line 44

Class

MentionExtension
Mention extension.

Namespace

Drupal\markdown\Plugin\Markdown\CommonMark\Extension

Code

public function register($environment) {

  // Intentionally do nothing.
  // @see https://www.drupal.org/project/markdown/issues/3160927
}