public function VariantRouteFilter::__construct in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Routing/VariantRouteFilter.php \Drupal\page_manager\Routing\VariantRouteFilter::__construct()
Constructs a new VariantRouteFilter.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path stack.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The current request stack.
File
- src/
Routing/ VariantRouteFilter.php, line 63 - Contains \Drupal\page_manager\Routing\VariantRouteFilter.
Class
- VariantRouteFilter
- Filters variant routes.
Namespace
Drupal\page_manager\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, CurrentPathStack $current_path, RequestStack $request_stack) {
$this->pageVariantStorage = $entity_type_manager
->getStorage('page_variant');
$this->currentPath = $current_path;
$this->requestStack = $request_stack;
}