5 * Contains tocify.module.
8 use Drupal\Core\Routing\RouteMatchInterface;
11 * Implements hook_help().
13 function tocify_help($route_name, RouteMatchInterface $route_match) {
14 switch ($route_name) {
15 // Main module help for the tocify module.
16 case 'help.page.tocify':
18 $output .= '<h3>' . t('About') . '</h3>';
19 $output .= '<p>' . t('Tocify your content') . '</p>';
27 * Implements hook_theme().
29 function tocify_theme($existing, $type, $theme, $path) {
31 'tableofcontents' => array(
36 'show_and_hide' => NULL,
37 'show_effect' => NULL,
38 'show_effect_speed' => NULL,
39 'hide_effect' => NULL,
40 'hide_effect_speed' => NULL,
41 'smooth_scroll' => NULL,
42 'smooth_scroll_speed' => NULL,
44 'show_and_hide_on_scroll' => NULL,
45 'highlight_on_scroll' => NULL,
46 'highlight_offset' => NULL,
47 'extend_page' => NULL,
48 'extend_page_offset' => NULL,
50 'hash_generator' => NULL,
51 'highlight_default' => NULL,
52 'ignore_selector' => NULL,
53 'scroll_history' => NULL,