You are here

public function TocManagerInterface::getToc in TOC API 8

Get the current TOC instance.

Parameters

string $id: ID used to track the TOC object's instance. Typically, the ID can be the TOC implementation's module name.

Return value

\Drupal\toc_api\TocInterface The current TOC instance.

1 method overrides TocManagerInterface::getToc()
TocManager::getToc in src/TocManager.php
Get the current TOC instance.

File

src/TocManagerInterface.php, line 38

Class

TocManagerInterface
Provides an interface defining a TOC manager.

Namespace

Drupal\toc_api

Code

public function getToc($id);