You are here

public function BookNavigationCacheContext::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/book/src/Cache/BookNavigationCacheContext.php \Drupal\book\Cache\BookNavigationCacheContext::__construct()
  2. 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\Cache

Code

public function __construct(RouteMatchInterface $route_match) {
  $this->routeMatch = $route_match;
}