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