public function RouteAwareContextProviderBase::__construct in Core Context 8
RouteAwareContextProviderBase constructor.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match service.
mixed ...$arguments: Additional arguments to pass to the parent constructor.
Overrides ContextProviderBase::__construct
2 calls to RouteAwareContextProviderBase::__construct()
- CanonicalEntity::__construct in src/
ContextProvider/ CanonicalEntity.php - CanonicalEntity constructor.
- LayoutBuilder::__construct in src/
ContextProvider/ LayoutBuilder.php - LayoutBuilder constructor.
2 methods override RouteAwareContextProviderBase::__construct()
- CanonicalEntity::__construct in src/
ContextProvider/ CanonicalEntity.php - CanonicalEntity constructor.
- LayoutBuilder::__construct in src/
ContextProvider/ LayoutBuilder.php - LayoutBuilder constructor.
File
- src/
ContextProvider/ RouteAwareContextProviderBase.php, line 32
Class
- RouteAwareContextProviderBase
- Provides a base class for context providers which use the current route.
Namespace
Drupal\core_context\ContextProviderCode
public function __construct(RouteMatchInterface $route_match, ...$arguments) {
$this->routeMatch = $route_match;
parent::__construct(...$arguments);
}