Search for context

  1. Search 7.x for context
  2. Search 9.5.x for context
  3. Search 8.9.x for context
  4. Search 11.x for context
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Context class core/lib/Drupal/Core/Plugin/Context/Context.php A Drupal specific context wrapper class.
Context class core/lib/Drupal/Component/Plugin/Context/Context.php A generic context class for wrapping data a plugin needs to operate.

All search results

Title Object type File name Summary
ForumBlockBase::getCacheContexts function core/modules/forum/src/Plugin/Block/ForumBlockBase.php
HeadersCacheContext class core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Defines the HeadersCacheContext service, for "per header" caching.
HeadersCacheContext.php file core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
HeadersCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
HeadersCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
HeadersCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
HeadersCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\HeadersCacheContext[[api-linebreak]]
@group Cache
HeadersCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php
HeadersCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php Provides a list of headers and expected cache contexts.
HeadersCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php @covers ::getContext[[api-linebreak]]
HelpBlock::getCacheContexts function core/modules/help/src/Plugin/Block/HelpBlock.php
HelpTopicSection::getCacheContexts function core/modules/help/src/Plugin/HelpSection/HelpTopicSection.php
HelpTopicTwig::getCacheContexts function core/modules/help/src/HelpTopicTwig.php
HelpTopicTwigLoader::getSourceContext function core/modules/help/src/HelpTopicTwigLoader.php
HelpTopicTwigLoaderTest::testGetSourceContext function core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php @covers ::getSourceContext[[api-linebreak]]
HelpTopicTwigLoaderTest::testGetSourceContextException function core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php @covers ::getSourceContext[[api-linebreak]]
hook_contextual_links_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter contextual links before they are rendered.
hook_contextual_links_plugins_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter the plugin definition of contextual links.
hook_contextual_links_view_alter function core/modules/contextual/contextual.api.php Alter a contextual links element before it is rendered.
IFrameUrlHelper::$requestContext property core/modules/media/src/IFrameUrlHelper.php The request context service.
IHaveRuntimeContexts class core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php Defines a class for a fake context provider.
IHaveRuntimeContexts class core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/IHaveRuntimeContexts.php Defines a class for a context-aware block.
IHaveRuntimeContexts.php file core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php
IHaveRuntimeContexts.php file core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/IHaveRuntimeContexts.php
IHaveRuntimeContexts::build function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/IHaveRuntimeContexts.php Builds and returns the renderable array for this block plugin.
IHaveRuntimeContexts::getAvailableContexts function core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php Gets all available contexts for the purposes of configuration.
IHaveRuntimeContexts::getRuntimeContexts function core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php Gets runtime context values for the given context IDs.
InaccessibleMenuLink::getCacheContexts function core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php
InheritedContextDefinition class core/tests/Drupal/Tests/Core/Plugin/Fixtures/InheritedContextDefinition.php Inherited class used for testing.
InheritedContextDefinition.php file core/tests/Drupal/Tests/Core/Plugin/Fixtures/InheritedContextDefinition.php
InstallerAccessPolicy::getPersistentCacheContexts function core/lib/Drupal/Core/Installer/InstallerAccessPolicy.php
IpCacheContext class core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Defines the IpCacheContext service, for "per IP address" caching.
IpCacheContext.php file core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
IpCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
IpCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
IpCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
IsFrontPathCacheContext class core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php Defines a cache context for whether the URL is the front page of the site.
IsFrontPathCacheContext.php file core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php
IsFrontPathCacheContext::$pathMatcher property core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php
IsFrontPathCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php
IsFrontPathCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php
IsFrontPathCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php
IsFrontPathCacheContext::__construct function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php Constructs an IsFrontPathCacheContext object.
IsFrontPathCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\IsFrontPathCacheContext[[api-linebreak]]
@group Cache
IsFrontPathCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php
IsFrontPathCacheContextTest::createPathMatcher function core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php Creates a PathMatcherInterface prophecy.
IsFrontPathCacheContextTest::testGetContextFront function core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php @covers ::getContext[[api-linebreak]]
IsFrontPathCacheContextTest::testGetContextNotFront function core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php @covers ::getContext[[api-linebreak]]
IsSuperUserCacheContext class core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php Defines the IsSuperUserCacheContext service, for "super user or not" caching.
IsSuperUserCacheContext.php file core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.