RequestContext |
class |
core/lib/Drupal/Core/Routing/RequestContext.php |
Holds information about the current request. |
RequestContext.php |
file |
core/lib/Drupal/Core/Routing/RequestContext.php |
|
RequestContext::$completeBaseUrl |
property |
core/lib/Drupal/Core/Routing/RequestContext.php |
The scheme, host and base path, for example "http://example.com/d8". |
RequestContext::fromRequest |
function |
core/lib/Drupal/Core/Routing/RequestContext.php |
|
RequestContext::fromRequestStack |
function |
core/lib/Drupal/Core/Routing/RequestContext.php |
Populates the context from the current request from the request stack. |
RequestContext::getCompleteBaseUrl |
function |
core/lib/Drupal/Core/Routing/RequestContext.php |
Gets the scheme, host and base path. |
RequestContext::setCompleteBaseUrl |
function |
core/lib/Drupal/Core/Routing/RequestContext.php |
Sets the complete base URL for the Request context. |
RequestFormatCacheContext |
class |
core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php |
Defines the RequestFormatCacheContext service, for "per format" caching. |
RequestFormatCacheContext.php |
file |
core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php |
|
RequestFormatCacheContext::getCacheableMetadata |
function |
core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php |
|
RequestFormatCacheContext::getContext |
function |
core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php |
|
RequestFormatCacheContext::getLabel |
function |
core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php |
|
RequestPath::getCacheContexts |
function |
core/modules/system/src/Plugin/Condition/RequestPath.php |
|
RequestStackCacheContextBase |
class |
core/lib/Drupal/Core/Cache/Context/RequestStackCacheContextBase.php |
Defines a base class for cache contexts depending only on the request stack. |
RequestStackCacheContextBase.php |
file |
core/lib/Drupal/Core/Cache/Context/RequestStackCacheContextBase.php |
|
RequestStackCacheContextBase::$requestStack |
property |
core/lib/Drupal/Core/Cache/Context/RequestStackCacheContextBase.php |
The request stack. |
RequestStackCacheContextBase::__construct |
function |
core/lib/Drupal/Core/Cache/Context/RequestStackCacheContextBase.php |
Constructs a new RequestStackCacheContextBase class. |
ResourceResponseSubscriber::generateContext |
function |
core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php |
Generates a top-level JSON:API normalization context. |
ResourceTestBase::getExpectedCacheContexts |
function |
core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php |
The expected cache contexts for the GET/HEAD response of the test entity. |
ResourceVersionRouteEnhancer::CACHE_CONTEXT |
constant |
core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php |
The cache context by which vary the loaded entity revision. |
ResponseStatus::getCacheContexts |
function |
core/modules/system/src/Plugin/Condition/ResponseStatus.php |
|
RestResourceConfigResourceTestBase::getExpectedCacheContexts |
function |
core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php |
The expected cache contexts for the GET/HEAD response of the test entity. |
Role::getCacheContexts |
function |
core/modules/user/src/Plugin/views/access/Role.php |
The cache contexts associated with this object. |
RouteCacheContext |
class |
core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php |
Defines the RouteCacheContext service, for "per route" caching. |
RouteCacheContext.php |
file |
core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php |
|
RouteCacheContext::$routeMatch |
property |
core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php |
The route match. |
RouteCacheContext::getCacheableMetadata |
function |
core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php |
Gets the cacheability metadata for the context. |
RouteCacheContext::getContext |
function |
core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php |
Returns the string representation of the cache context. |
RouteCacheContext::getLabel |
function |
core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php |
Returns the label of the cache context. |
RouteCacheContext::__construct |
function |
core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php |
Constructs a new RouteCacheContext class. |
RouteNameCacheContext |
class |
core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php |
Defines the RouteCacheContext service, for "per route name" caching. |
RouteNameCacheContext.php |
file |
core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php |
|
RouteNameCacheContext::getContext |
function |
core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php |
Returns the string representation of the cache context. |
RouteNameCacheContext::getLabel |
function |
core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php |
Returns the label of the cache context. |
router.admin_context |
service |
core/core.services.yml |
Drupal\Core\Routing\AdminContext |
router.request_context |
service |
core/core.services.yml |
Drupal\Core\Routing\RequestContext |
Section::contextHandler |
function |
core/modules/layout_builder/src/Section.php |
Wraps the context handler. |
SectionComponent::contextHandler |
function |
core/modules/layout_builder/src/SectionComponent.php |
Wraps the context handler. |
SectionComponentBuildRenderArrayEvent::$contexts |
property |
core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php |
The available contexts. |
SectionComponentBuildRenderArrayEvent::getContexts |
function |
core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php |
Get the available contexts. |
SectionRenderTest::$contextHandler |
property |
core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php |
The plugin context handler. |
SectionRenderTest::$contextRepository |
property |
core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php |
The context manager service. |
SectionRenderTest::testContextAwareBlock |
function |
core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php |
@covers ::toRenderArray |
SectionStorage::$context_definitions |
property |
core/modules/layout_builder/src/Annotation/SectionStorage.php |
Any required context definitions, optional. |
SectionStorageBase::getContextsDuringPreview |
function |
core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php |
Gets contexts for use during preview. |
SectionStorageInterface::deriveContextsFromRoute |
function |
core/modules/layout_builder/src/SectionStorageInterface.php |
Derives the available plugin contexts from route values. |
SectionStorageInterface::getContextsDuringPreview |
function |
core/modules/layout_builder/src/SectionStorageInterface.php |
Gets contexts for use during preview. |
SectionStorageManager::$contextHandler |
property |
core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php |
The context handler. |
SectionStorageManager::findByContext |
function |
core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php |
|
SectionStorageManagerInterface::findByContext |
function |
core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php |
Finds the section storage to load based on available contexts. |