public function PageManagerRoutes::__construct in Page Manager 8.4
Same name and namespace in other branches
- 8 src/Routing/PageManagerRoutes.php \Drupal\page_manager\Routing\PageManagerRoutes::__construct()
Constructs a new PageManagerRoutes.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator.
File
- src/
Routing/ PageManagerRoutes.php, line 41
Class
- PageManagerRoutes
- Provides routes for page entities.
Namespace
Drupal\page_manager\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, CacheTagsInvalidatorInterface $cache_tags_invalidator) {
$this->entityStorage = $entity_type_manager
->getStorage('page');
$this->cacheTagsInvalidator = $cache_tags_invalidator;
}