You are here

function alpha_pagination_entity_presave in Views Alpha Pagination 8.2

Implements hook_node_presave().

File

./alpha_pagination.module, line 56
Module hooks and alters for the Views Alpha Pagination module.

Code

function alpha_pagination_entity_presave(EntityInterface $entity) {
  if ($entity instanceof ContentEntityInterface) {
    Cache::invalidateTags([
      'alpha_pagination:' . $entity
        ->getEntityTypeId(),
    ]);
  }
}