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

Breadcrumb

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

function SearchHooks::theme

Implements hook_theme().

File

core/modules/search/src/Hook/SearchHooks.php, line 76

Class

SearchHooks
Hook implementations for search.

Namespace

Drupal\search\Hook

Code

public function theme() : array {
    return [
        'search_result' => [
            'variables' => [
                'result' => NULL,
                'plugin_id' => NULL,
            ],
            'file' => 'search.pages.inc',
        ],
    ];
}

API Navigation

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