public function TrackingHelperInterface::trackReferencedEntityUpdate in Search API 8
Reacts to an entity being updated or deleted.
Determines whether this entity is indirectly referenced in any search index and, if so, marks all items referencing it as updated.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity that just got changed (updated or deleted).
bool $deleted: (optional) TRUE if the entity was deleted, FALSE if it was updated.
See also
\Drupal\search_api\Datasource\DatasourceInterface::getAffectedItemsForEntityChange()
1 method overrides TrackingHelperInterface::trackReferencedEntityUpdate()
- TrackingHelper::trackReferencedEntityUpdate in src/
Utility/ TrackingHelper.php - Reacts to an entity being updated or deleted.
File
- src/
Utility/ TrackingHelperInterface.php, line 27
Class
- TrackingHelperInterface
- Provides an interface for the tracking helper service.
Namespace
Drupal\search_api\UtilityCode
public function trackReferencedEntityUpdate(EntityInterface $entity, bool $deleted = FALSE);