You are here

function toc_api_theme in TOC API 8

Implements hook_theme().

File

./toc_api.module, line 31
Converts header tags into a hierarchical table of contents.

Code

function toc_api_theme() {
  return [
    'toc_header' => [
      'variables' => [
        'toc' => NULL,
        'item' => NULL,
        'attributes' => [],
      ],
    ],
    'toc_back_to_top' => [
      'variables' => [
        'toc' => NULL,
        'item' => NULL,
        'attributes' => [],
      ],
    ],
    'toc_tree' => [
      'variables' => [
        'toc' => NULL,
        'attributes' => [],
      ],
    ],
    'toc_menu' => [
      'variables' => [
        'toc' => NULL,
        'attributes' => [],
      ],
    ],
    'toc_responsive' => [
      'variables' => [
        'toc' => NULL,
        'attributes' => [],
        'toc_type' => 'responsive',
      ],
    ],
    'toc_default' => [
      'variables' => [
        'toc' => NULL,
        'attributes' => [],
        'toc_type' => 'default',
      ],
    ],
  ];
}