You are here

public function PreviewLinkCacheContext::__construct in Preview Link 2.0.x

Same name and namespace in other branches
  1. 8 src/PreviewLinkCacheContext.php \Drupal\preview_link\PreviewLinkCacheContext::__construct()
  2. 2.x src/PreviewLinkCacheContext.php \Drupal\preview_link\PreviewLinkCacheContext::__construct()

Constructs a new PreviewLinkCacheContext.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: Route match.

File

src/PreviewLinkCacheContext.php, line 29

Class

PreviewLinkCacheContext
Defines a class for a preview link cache context.

Namespace

Drupal\preview_link

Code

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