public function RouteGroupCacheContext::__construct in Group 2.0.x
Same name and namespace in other branches
- 8 src/Cache/Context/RouteGroupCacheContext.php \Drupal\group\Cache\Context\RouteGroupCacheContext::__construct()
Constructs a new RouteGroupCacheContext.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $current_route_match: The current route match object.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Cache/ Context/ RouteGroupCacheContext.php, line 33
Class
- RouteGroupCacheContext
- Defines a cache context for "per group from route" caching.
Namespace
Drupal\group\Cache\ContextCode
public function __construct(RouteMatchInterface $current_route_match, EntityTypeManagerInterface $entity_type_manager) {
$this->currentRouteMatch = $current_route_match;
$this->entityTypeManager = $entity_type_manager;
}