function HelpHooks::theme

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/help/src/Hook/HelpHooks.php, line 96

Class

HelpHooks
Hook implementations for help.

Namespace

Drupal\help\Hook

Code

public function theme($existing, $type, $theme, $path) : array {
  return [
    'help_section' => [
      'variables' => [
        'title' => NULL,
        'description' => NULL,
        'links' => NULL,
        'empty' => NULL,
      ],
    ],
    'help_topic' => [
      'variables' => [
        'body' => [],
        'related' => [],
      ],
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.