You are here

public function BaseParser::getRenderStrategy in Markdown 8.2

Retrieves the render strategy to use.

Return value

string The render strategy.

Overrides RenderStrategyInterface::getRenderStrategy

8 calls to BaseParser::getRenderStrategy()
BaseParser::getConfiguration in src/Plugin/Markdown/BaseParser.php
Gets this plugin's configuration.
BaseParser::parse in src/Plugin/Markdown/BaseParser.php
Parses markdown into HTML.
CommonMark::buildConfigurationForm in src/Plugin/Markdown/CommonMark/CommonMark.php
Form constructor.
CommonMark::getConfiguration in src/Plugin/Markdown/CommonMark/CommonMark.php
Gets this plugin's configuration.
CommonMark::getEnvironment in src/Plugin/Markdown/CommonMark/CommonMark.php
Retrieves a CommonMark environment, creating it if necessary.

... See full list

File

src/Plugin/Markdown/BaseParser.php, line 215

Class

BaseParser
Base class form Markdown Parser instances.

Namespace

Drupal\markdown\Plugin\Markdown

Code

public function getRenderStrategy() {
  return $this
    ->config()
    ->get('render_strategy.type') ?: static::FILTER_OUTPUT;
}