class SearchApiBackend in Search API 8
Defines a Search API backend annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\search_api\Annotation\SearchApiBackend
Expanded class hierarchy of SearchApiBackend
See also
\Drupal\search_api\Backend\BackendPluginManager
\Drupal\search_api\Backend\BackendInterface
\Drupal\search_api\Backend\BackendPluginBase
1 file declares its use of SearchApiBackend
- BackendPluginManager.php in src/
Backend/ BackendPluginManager.php
3 classes are annotated with SearchApiBackend
- Database in modules/
search_api_db/ src/ Plugin/ search_api/ backend/ Database.php - Indexes and searches items using the database.
- NoUi in tests/
search_api_test_no_ui/ src/ Plugin/ search_api/ backend/ NoUi.php - Provides a test backend that should be hidden from the UI.
- TestBackend in tests/
search_api_test/ src/ Plugin/ search_api/ backend/ TestBackend.php - Provides a dummy backend for testing purposes.
File
- src/
Annotation/ SearchApiBackend.php, line 17
Namespace
Drupal\search_api\AnnotationView source
class SearchApiBackend extends Plugin {
/**
* The backend plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the backend plugin.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $label;
/**
* The backend description.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $description;
}
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:: |
5 |
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. | 2 |
SearchApiBackend:: |
public | property | The backend description. | |
SearchApiBackend:: |
public | property | The backend plugin ID. | |
SearchApiBackend:: |
public | property | The human-readable name of the backend plugin. |