class SearchPlugin in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/search/src/Annotation/SearchPlugin.php \Drupal\search\Annotation\SearchPlugin
Defines a SearchPlugin type annotation object.
SearchPlugin classes define search types for the core Search module. Each search type can be used to create search pages from the Search settings page.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\search\Annotation\SearchPlugin
Expanded class hierarchy of SearchPlugin
See also
SearchPluginBase
Related topics
3 classes are annotated with SearchPlugin
- NodeSearch in core/
modules/ node/ src/ Plugin/ Search/ NodeSearch.php - Handles searching for node entities using the Search module index.
- SearchExtraTypeSearch in core/
modules/ search/ tests/ modules/ search_extra_type/ src/ Plugin/ Search/ SearchExtraTypeSearch.php - Executes a dummy keyword search.
- UserSearch in core/
modules/ user/ src/ Plugin/ Search/ UserSearch.php - Executes a keyword search for users against the {users} database table.
File
- core/
modules/ search/ src/ Annotation/ SearchPlugin.php, line 24 - Contains \Drupal\search\Annotation\SearchPlugin.
Namespace
Drupal\search\AnnotationView source
class SearchPlugin extends Plugin {
/**
* A unique identifier for the search plugin.
*
* @var string
*/
public $id;
/**
* The title for the search page tab.
*
* @todo This will potentially be translated twice or cached with the wrong
* translation until the search tabs are converted to local task plugins.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $title;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
2 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 1 |
SearchPlugin:: |
public | property | A unique identifier for the search plugin. | |
SearchPlugin:: |
public | property | The title for the search page tab. |