public function BookNavigationCacheContext::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/book/src/Cache/BookNavigationCacheContext.php \Drupal\book\Cache\BookNavigationCacheContext::__construct()
- 9 core/modules/book/src/Cache/BookNavigationCacheContext.php \Drupal\book\Cache\BookNavigationCacheContext::__construct()
Constructs a new BookNavigationCacheContext service.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
File
- core/
modules/ book/ src/ Cache/ BookNavigationCacheContext.php, line 41
Class
- BookNavigationCacheContext
- Defines the book navigation cache context service.
Namespace
Drupal\book\CacheCode
public function __construct(RouteMatchInterface $route_match) {
$this->routeMatch = $route_match;
}