public function CacheInvalidator::__construct in Decoupled Router 8
Same name and namespace in other branches
- 2.x src/CacheInvalidator.php \Drupal\decoupled_router\CacheInvalidator::__construct()
CacheInvalidator constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manger.
File
- src/
CacheInvalidator.php, line 35
Class
- CacheInvalidator
- Invalidates decoupled router cache entries based on path events.
Namespace
Drupal\decoupled_routerCode
public function __construct(CacheTagsInvalidatorInterface $invalidator, EntityTypeManagerInterface $entity_type_manager) {
$this->invalidator = $invalidator;
$this->entityTypeManager = $entity_type_manager;
}