public function MicrositeCacheContext::__construct in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 modules/entity_hierarchy_microsite/src/Cache/MicrositeCacheContext.php \Drupal\entity_hierarchy_microsite\Cache\MicrositeCacheContext::__construct()
Constructs a new MicrositeCacheContext.
Parameters
\Drupal\entity_hierarchy_microsite\ChildOfMicrositeLookupInterface $childOfMicrositeLookup: Lookup.
\Drupal\Core\Routing\RouteMatchInterface $routeMatch: Route match.
\Drupal\entity_hierarchy\Information\ParentCandidateInterface $parentCandidate: Parent candidate.
File
- modules/
entity_hierarchy_microsite/ src/ Cache/ MicrositeCacheContext.php, line 50
Class
- MicrositeCacheContext
- Defines a class for a microsite cache context.
Namespace
Drupal\entity_hierarchy_microsite\CacheCode
public function __construct(ChildOfMicrositeLookupInterface $childOfMicrositeLookup, RouteMatchInterface $routeMatch, ParentCandidateInterface $parentCandidate) {
$this->childOfMicrositeLookup = $childOfMicrositeLookup;
$this->routeMatch = $routeMatch;
$this->parentCandidate = $parentCandidate;
}