You are here

protected function MarkdownBenchmarkAverages::renderer in Markdown 3.0.x

Retrieves the Renderer service.

Return value

\Drupal\Core\Render\RendererInterface

File

src/MarkdownBenchmarkAverages.php, line 315

Class

MarkdownBenchmarkAverages
Class MarkdownBenchmarkAverages.

Namespace

Drupal\markdown

Code

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