You are here

protected function MarkdownBenchmark::renderer in Markdown 3.0.x

Retrieves the Renderer service.

Return value

\Drupal\Core\Render\RendererInterface

File

src/MarkdownBenchmark.php, line 266

Class

MarkdownBenchmark
Class MarkdownBenchmark.

Namespace

Drupal\markdown

Code

protected function renderer() {
  if (static::$renderer === NULL) {
    static::$renderer = \Drupal::service('renderer');
  }
  return static::$renderer;
}