You are here

public function DatasourceInterface::canContainEntityReferences in Search API 8

Determines whether this datasource can contain entity references.

If this method returns TRUE, the Search API will attempt to mark items for reindexing if indexed data in entities referenced by those items changes, using the datasource property information and the getAffectedItemsForEntityChange() method.

Return value

bool TRUE if this datasource can contain entity references, FALSE otherwise.

See also

\Drupal\search_api\Datasource\DatasourceInterface::getAffectedItemsForEntityChange()

\Drupal\search_api\Utility\TrackingHelper::trackReferencedEntityUpdate()

1 method overrides DatasourceInterface::canContainEntityReferences()
DatasourcePluginBase::canContainEntityReferences in src/Datasource/DatasourcePluginBase.php
Determines whether this datasource can contain entity references.

File

src/Datasource/DatasourceInterface.php, line 262

Class

DatasourceInterface
Describes a source for search items.

Namespace

Drupal\search_api\Datasource

Code

public function canContainEntityReferences() : bool;