public function PreviewLinkCacheContext::__construct in Preview Link 2.x
Same name and namespace in other branches
- 8 src/PreviewLinkCacheContext.php \Drupal\preview_link\PreviewLinkCacheContext::__construct()
- 2.0.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_linkCode
public function __construct(RouteMatchInterface $routeMatch) {
$this->routeMatch = $routeMatch;
}