You are here

public function CacheInvalidator::__construct in Decoupled Router 2.x

Same name and namespace in other branches
  1. 8 src/CacheInvalidator.php \Drupal\decoupled_router\CacheInvalidator::__construct()

CacheInvalidator constructor.

Parameters

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $invalidator: The cache tag invalidator.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manger.

File

src/CacheInvalidator.php, line 37

Class

CacheInvalidator
Invalidates decoupled router cache entries based on path events.

Namespace

Drupal\decoupled_router

Code

public function __construct(CacheTagsInvalidatorInterface $invalidator, EntityTypeManagerInterface $entity_type_manager) {
  $this->invalidator = $invalidator;
  $this->entityTypeManager = $entity_type_manager;
}