You are here

public function TocBuilderInterface::buildToc in TOC API 8

Builds a table of contents navigation.

Parameters

\Drupal\toc_api\TocInterface $toc: A TOC object.

Return value

array A render array containing a table of contents.

1 method overrides TocBuilderInterface::buildToc()
TocBuilder::buildToc in src/TocBuilder.php
Builds a table of contents navigation.

File

src/TocBuilderInterface.php, line 54

Class

TocBuilderInterface
Provides an interface defining a TOC builder.

Namespace

Drupal\toc_api

Code

public function buildToc(TocInterface $toc);