You are here

public function BookNavigationCacheContext::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/book/src/Cache/BookNavigationCacheContext.php \Drupal\book\Cache\BookNavigationCacheContext::__construct()

Constructs a new BookNavigationCacheContext service.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

core/modules/book/src/Cache/BookNavigationCacheContext.php, line 42
Contains \Drupal\book\Cache\BookNavigationCacheContext.

Class

BookNavigationCacheContext
Defines the book navigation cache context service.

Namespace

Drupal\book\Cache

Code

public function __construct(RequestStack $request_stack) {
  $this->requestStack = $request_stack;
}