interface TocInterface in TOC API 8
Provides an interface defining a TOC.
Hierarchy
- interface \Drupal\toc_api\TocInterface
Expanded class hierarchy of TocInterface
All classes that implement TocInterface
File
- src/
TocInterface.php, line 8
Namespace
Drupal\toc_apiView source
interface TocInterface {
/**
* Returns the unaltered source content.
*
* @return string
* The unaltered source content.
*/
public function getSource();
/**
* Returns the content with all headers assigned a unique id.
*
* @return string
* The content with all headers assigned a unique id.
*/
public function getContent();
/**
* Returns the TOC options.
*
* @return array
* The table of contents options.
*/
public function getOptions();
/**
* Return the table of contents title.
*
* @return string
* The table of contents title.
*/
public function getTitle();
/**
* Returns an array of allowed tags names.
*
* @return array
* An array of allowed tags names.
*/
public function getAllowedTags();
/**
* Returns a hierarchical array of headers.
*
* @return array
* An hierarchical array of headers.
*/
public function getHeaderCount();
/**
* Returns a flat associative array of headers.
*
* @return array
* A flat associative array of headers.
*/
public function getIndex();
/**
* Returns a hierarchical array of headers.
*
* @return array
* An hierarchical array of headers.
*/
public function getTree();
/**
* Indicates if this table of contents is displayed in a block.
*
* @return bool
* TRUE if this table of contents is displayed in a block.
*/
public function isBlock();
/**
* Indicates if this table of contents is visible.
*
* @return bool
* TRUE if this table of contents is visible.
*/
public function isVisible();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TocInterface:: |
public | function | Returns an array of allowed tags names. | 1 |
TocInterface:: |
public | function | Returns the content with all headers assigned a unique id. | 1 |
TocInterface:: |
public | function | Returns a hierarchical array of headers. | 1 |
TocInterface:: |
public | function | Returns a flat associative array of headers. | 1 |
TocInterface:: |
public | function | Returns the TOC options. | 1 |
TocInterface:: |
public | function | Returns the unaltered source content. | 1 |
TocInterface:: |
public | function | Return the table of contents title. | 1 |
TocInterface:: |
public | function | Returns a hierarchical array of headers. | 1 |
TocInterface:: |
public | function | Indicates if this table of contents is displayed in a block. | 1 |
TocInterface:: |
public | function | Indicates if this table of contents is visible. | 1 |