You are here

protected property Toc::$defaultOptions in TOC API 8

The default options.

Type: array

File

src/Toc.php, line 33

Class

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

Namespace

Drupal\toc_api

Code

protected $defaultOptions = [
  'template' => 'responsive',
  'title' => 'Table of Contents',
  'block' => FALSE,
  'header_count' => 2,
  'header_min' => 2,
  'header_max' => 4,
  'header_allowed_tags' => '<em> <b> <del> <i> <mark> <s> <span> <strong> <sup> <sub> <em> <b> <del> <i> <mark> <s> <span> <strong> <sup> <sub>',
  'header_id' => 'title',
  'header_id_prefix' => 'section',
  'top_label' => 'Back to top',
  'top_min' => 2,
  'top_max' => 2,
  'number_path' => TRUE,
  'number_path_separator' => '.',
  'number_path_truncate' => TRUE,
  'default' => [
    'number_type' => 'decimal',
    'number_prefix' => '',
    'number_suffix' => ') ',
  ],
  'headers' => [
    'h1' => [],
    'h2' => [],
    'h3' => [],
    'h4' => [],
    'h5' => [],
    'h6' => [],
  ],
];