protected function CommonMarkGfm::createEnvironment in Markdown 8.2
Creates an environment.
Return value
\League\CommonMark\ConfigurableEnvironmentInterface|\League\CommonMark\Environment A CommonMark environment.
Overrides CommonMark::createEnvironment
File
- src/
Plugin/ Markdown/ CommonMark/ CommonMarkGfm.php, line 52
Class
- CommonMarkGfm
- Support for CommonMark GFM by The League of Extraordinary Packages.
Namespace
Drupal\markdown\Plugin\Markdown\CommonMarkCode
protected function createEnvironment() {
/** @var \League\CommonMark\Environment|\League\CommonMark\Environment\Environment $environment */
$environment = static::environmentClass();
return $environment::createGFMEnvironment();
}