You are here

protected function CommonMark::createEnvironment in Markdown 8.2

Creates an environment.

Return value

\League\CommonMark\ConfigurableEnvironmentInterface|\League\CommonMark\Environment A CommonMark environment.

1 call to CommonMark::createEnvironment()
CommonMark::getEnvironment in src/Plugin/Markdown/CommonMark/CommonMark.php
Retrieves a CommonMark environment, creating it if necessary.
1 method overrides CommonMark::createEnvironment()
CommonMarkGfm::createEnvironment in src/Plugin/Markdown/CommonMark/CommonMarkGfm.php
Creates an environment.

File

src/Plugin/Markdown/CommonMark/CommonMark.php, line 327

Class

CommonMark
Support for CommonMark by The League of Extraordinary Packages.

Namespace

Drupal\markdown\Plugin\Markdown\CommonMark

Code

protected function createEnvironment() {
  $environment = static::environmentClass();
  return $environment::createCommonMarkEnvironment();
}