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

Breadcrumb

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

function Search::__construct

Constructs a Search attribute.

Parameters

string $id: The plugin ID.

\Drupal\Core\StringTranslation\TranslatableMarkup|null $title: The title for the search page tab.

bool $use_admin_theme: Whether search results should be displayed in admin theme or not.

class-string|null $deriver: (optional) The deriver class.

Overrides Plugin::__construct

File

core/modules/search/src/Attribute/Search.php, line 33

Class

Search
Defines a Search type attribute for plugin discovery.

Namespace

Drupal\search\Attribute

Code

public function __construct(string $id, ?TranslatableMarkup $title = NULL, bool $use_admin_theme = FALSE, ?string $deriver = NULL) {
}

API Navigation

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