function Search::__construct
Same name in other branches
- 10 core/modules/search/src/Attribute/Search.php \Drupal\search\Attribute\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\AttributeCode
public function __construct(string $id, ?TranslatableMarkup $title = NULL, bool $use_admin_theme = FALSE, ?string $deriver = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.