You are here

public function ExternalLinkRenderer::__construct in Markdown 8.2

ExternalLinkRenderer constructor.

Parameters

\League\CommonMark\Environment\EnvironmentInterface|\League\CommonMark\EnvironmentInterface $environment: The CommonMark Environment instance. Note: the parameter is purposefully not typed in the constructor to allow BC.

File

src/Plugin/Markdown/CommonMark/Extension/ExternalLinkRenderer.php, line 27

Class

ExternalLinkRenderer

Namespace

Drupal\markdown\Plugin\Markdown\CommonMark\Extension

Code

public function __construct($environment) {
  $this->environment = $environment;
}