You are here

protected function Toc::formatter in TOC API 8

Gets the TOC formatter.

Return value

\Drupal\toc_api\TocFormatter. The TOC formatter

File

src/Toc.php, line 331

Class

Toc
Defines A class that parses the header tags from an HTML document.

Namespace

Drupal\toc_api

Code

protected function formatter() {
  return \Drupal::service('toc_api.formatter');
}