You are here

public function TocBuilder::__construct in TOC API 8

Constructs a new TocBuilder.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

src/TocBuilder.php, line 27

Class

TocBuilder
Defines a service that builds and renders a table of contents and update an HTML document's headers.

Namespace

Drupal\toc_api

Code

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