public function TocBuilderInterface::buildContent in TOC API 8
Build a table of contents' body.
Parameters
\Drupal\toc_api\TocInterface $toc: A TOC object.
Return value
array A render array containing the table of content's body content with bookmarked, typed, and custom headers with back to top links.
1 method overrides TocBuilderInterface::buildContent()
- TocBuilder::buildContent in src/
TocBuilder.php - Build a table of contents' body.
File
- src/
TocBuilderInterface.php, line 32
Class
- TocBuilderInterface
- Provides an interface defining a TOC builder.
Namespace
Drupal\toc_apiCode
public function buildContent(TocInterface $toc);