You are here

public function DatasourceInterface::getBundles in Search API 8

Retrieves the bundles associated to this datasource.

Return value

string[] An associative array mapping the datasource's bundles' IDs to their labels. If the datasource doesn't contain any bundles, a single pseudo-bundle should be returned, usually equal to the datasource identifier (and label).

1 method overrides DatasourceInterface::getBundles()
DatasourcePluginBase::getBundles in src/Datasource/DatasourcePluginBase.php
Retrieves the bundles associated to this datasource.

File

src/Datasource/DatasourceInterface.php, line 185

Class

DatasourceInterface
Describes a source for search items.

Namespace

Drupal\search_api\Datasource

Code

public function getBundles();