You are here

public function RecentlyReadServiceInterface::deleteEntityRecords in Recently Read 8

Delete all "Recently Read" IDs for the entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity which might has "Recently Read" records.

\Drupal\Core\Session\AccountInterface|null $user: The user who read the entity.

1 method overrides RecentlyReadServiceInterface::deleteEntityRecords()
RecentlyReadService::deleteEntityRecords in src/RecentlyReadService.php
Delete all "Recently Read" IDs for the entity.

File

src/RecentlyReadServiceInterface.php, line 52

Class

RecentlyReadServiceInterface
Interface RecentlyReadServiceInterface.

Namespace

Drupal\recently_read

Code

public function deleteEntityRecords(EntityInterface $entity, AccountInterface $user = NULL);