You are here

public function Markdown::__construct in Markdown 3.0.x

Same name in this branch
  1. 3.0.x src/Markdown.php \Drupal\markdown\Markdown::__construct()
  2. 3.0.x src/Plugin/Filter/Markdown.php \Drupal\markdown\Plugin\Filter\Markdown::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides FilterBase::__construct

File

src/Plugin/Filter/Markdown.php, line 52

Class

Markdown
Provides a filter for Markdown.

Namespace

Drupal\markdown\Plugin\Filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->parserManager = \Drupal::service('plugin.manager.markdown.parser');
}