You are here

public function DatasourceInterface::getItemBundle in Search API 8

Retrieves the item's bundle.

Parameters

\Drupal\Core\TypedData\ComplexDataInterface $item: An item of this datasource's type.

Return value

string The bundle identifier of the item. Might be just the datasource identifier or a similar pseudo-bundle if the datasource does not contain any bundles.

See also

getBundles()

1 method overrides DatasourceInterface::getItemBundle()
DatasourcePluginBase::getItemBundle in src/Datasource/DatasourcePluginBase.php
Retrieves the item's bundle.

File

src/Datasource/DatasourceInterface.php, line 105

Class

DatasourceInterface
Describes a source for search items.

Namespace

Drupal\search_api\Datasource

Code

public function getItemBundle(ComplexDataInterface $item);