You are here

class SearchApiDatasource in Search API 8

Same name in this branch
  1. 8 src/Annotation/SearchApiDatasource.php \Drupal\search_api\Annotation\SearchApiDatasource
  2. 8 src/Plugin/views/filter/SearchApiDatasource.php \Drupal\search_api\Plugin\views\filter\SearchApiDatasource

Defines a Search API datasource annotation object.

Hierarchy

Expanded class hierarchy of SearchApiDatasource

See also

\Drupal\search_api\Datasource\DatasourcePluginManager

\Drupal\search_api\Datasource\DatasourceInterface

\Drupal\search_api\Datasource\DatasourcePluginBase

Plugin API

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\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2
SearchApiDatasource::$description public property The description of the datasource.
SearchApiDatasource::$id public property The datasource plugin ID.
SearchApiDatasource::$label public property The human-readable name of the datasource plugin.