You are here

abstract protected function RouteAwareContextProviderBase::appliesTo in Core Context 8

Determines if this provider can extract contexts from the current route.

Parameters

\Symfony\Component\Routing\Route $route: The route object.

Return value

bool TRUE if this provider can extract contexts from the route, otherwise FALSE.

1 call to RouteAwareContextProviderBase::appliesTo()
RouteAwareContextProviderBase::getRuntimeContexts in src/ContextProvider/RouteAwareContextProviderBase.php
Gets runtime context values for the given context IDs.
2 methods override RouteAwareContextProviderBase::appliesTo()
CanonicalEntity::appliesTo in src/ContextProvider/CanonicalEntity.php
Determines if this provider can extract contexts from the current route.
LayoutBuilder::appliesTo in src/ContextProvider/LayoutBuilder.php
Determines if this provider can extract contexts from the current route.

File

src/ContextProvider/RouteAwareContextProviderBase.php, line 47

Class

RouteAwareContextProviderBase
Provides a base class for context providers which use the current route.

Namespace

Drupal\core_context\ContextProvider

Code

protected abstract function appliesTo(Route $route) : bool;