public function DatasourcePluginBase::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.
Overrides DatasourceInterface::getItemBundle
See also
getBundles()
1 method overrides DatasourcePluginBase::getItemBundle()
- ContentEntity::getItemBundle in src/
Plugin/ search_api/ datasource/ ContentEntity.php  - Retrieves the item's bundle.
 
File
- src/
Datasource/ DatasourcePluginBase.php, line 73  
Class
- DatasourcePluginBase
 - Defines a base class from which other datasources may extend.
 
Namespace
Drupal\search_api\DatasourceCode
public function getItemBundle(ComplexDataInterface $item) {
  return $this
    ->getPluginId();
}