You are here

public function Toc::getIndex in TOC API 8

Returns a flat associative array of headers.

Return value

array A flat associative array of headers.

Overrides TocInterface::getIndex

File

src/Toc.php, line 387

Class

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

Namespace

Drupal\toc_api

Code

public function getIndex() {
  return $this->index;
}