class SearchApiDatasource in Search API 8
Same name in this branch
- 8 src/Annotation/SearchApiDatasource.php \Drupal\search_api\Annotation\SearchApiDatasource
- 8 src/Plugin/views/filter/SearchApiDatasource.php \Drupal\search_api\Plugin\views\filter\SearchApiDatasource
Defines a Search API datasource annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\search_api\Annotation\SearchApiDatasource
Expanded class hierarchy of SearchApiDatasource
See also
\Drupal\search_api\Datasource\DatasourcePluginManager
\Drupal\search_api\Datasource\DatasourceInterface
\Drupal\search_api\Datasource\DatasourcePluginBase
3 classes are annotated with SearchApiDatasource
- ContentEntity in src/
Plugin/ search_api/ datasource/ ContentEntity.php - Represents a datasource which exposes the content entities.
- NoUi in tests/
search_api_test_no_ui/ src/ Plugin/ search_api/ datasource/ NoUi.php - Provides a test datasource that should be hidden from the UI.
- TestDatasource in tests/
search_api_test/ src/ Plugin/ search_api/ datasource/ TestDatasource.php - Provides a datasource for testing purposes.
File
- src/
Annotation/ SearchApiDatasource.php, line 17
Namespace
Drupal\search_api\AnnotationView source
class SearchApiDatasource extends Plugin {
/**
* The datasource plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the datasource plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* The description of the datasource.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
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 |
SearchApiDatasource:: |
public | property | The description of the datasource. | |
SearchApiDatasource:: |
public | property | The datasource plugin ID. | |
SearchApiDatasource:: |
public | property | The human-readable name of the datasource plugin. |