Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HelpHooks.php

function HelpHooks::theme

Implements hook_theme().

File

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

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' => [],
            ],
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal