You are here

public function DatasourcePluginBase::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.

Overrides DatasourceInterface::canContainEntityReferences

See also

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

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

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

File

src/Datasource/DatasourcePluginBase.php, line 164

Class

DatasourcePluginBase
Defines a base class from which other datasources may extend.

Namespace

Drupal\search_api\Datasource

Code

public function canContainEntityReferences() : bool {
  return FALSE;
}