public static function EntityDatasourceInterface::getIndexesForEntity in Search API 8
Retrieves all indexes that are configured to index the given entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity for which to check.
Return value
\Drupal\search_api\IndexInterface[] All indexes that are configured to index the given entity (using this datasource class).
File
- src/
Plugin/ search_api/ datasource/ EntityDatasourceInterface.php, line 30
Class
- EntityDatasourceInterface
- Describes an interface for entity datasources.
Namespace
Drupal\search_api\Plugin\search_api\datasourceCode
public static function getIndexesForEntity(ContentEntityInterface $entity);