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
CacheContextsPass.php file core/lib/Drupal/Core/Cache/Context/CacheContextsPass.php
CacheContextsPass::process function core/lib/Drupal/Core/Cache/Context/CacheContextsPass.php Implements CompilerPassInterface::process().
CacheTest::mergeCacheContextsProvide function core/tests/Drupal/Tests/Core/Cache/CacheTest.php Provides a list of pairs of cache contexts arrays to be merged.
CacheTest::testCacheContextIntegration function core/modules/views/tests/src/Kernel/Plugin/CacheTest.php Tests the cache context integration for views result cache.
CacheTest::testMergeCacheContexts function core/tests/Drupal/Tests/Core/Cache/CacheTest.php @covers ::mergeContexts
cache_context.config_override_integration_test service core/modules/config/tests/config_override_integration_test/config_override_integration_test.services.yml Drupal\config_override_integration_test\Cache\ConfigOverrideIntegrationTestCacheContext
cache_context.cookies service core/core.services.yml Drupal\Core\Cache\Context\CookiesCacheContext
cache_context.entity_test_view_grants service core/modules/system/tests/modules/entity_test/entity_test.services.yml Drupal\entity_test\Cache\EntityTestViewGrantsCacheContext
cache_context.headers service core/core.services.yml Drupal\Core\Cache\Context\HeadersCacheContext
cache_context.ip service core/core.services.yml Drupal\Core\Cache\Context\IpCacheContext
cache_context.languages service core/core.services.yml Drupal\Core\Cache\Context\LanguagesCacheContext
cache_context.layout_builder_is_active service core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext
cache_context.pirate_day service core/modules/config/tests/config_override_test/config_override_test.services.yml Drupal\config_override_test\Cache\PirateDayCacheContext
cache_context.protocol_version service core/core.services.yml Drupal\Core\Cache\Context\ProtocolVersionCacheContext
cache_context.request_format service core/core.services.yml Drupal\Core\Cache\Context\RequestFormatCacheContext
cache_context.route service core/core.services.yml Drupal\Core\Cache\Context\RouteCacheContext
cache_context.route.book_navigation service core/modules/book/book.services.yml Drupal\book\Cache\BookNavigationCacheContext
cache_context.route.menu_active_trails service core/core.services.yml Drupal\Core\Cache\Context\MenuActiveTrailsCacheContext
cache_context.route.name service core/core.services.yml Drupal\Core\Cache\Context\RouteNameCacheContext
cache_context.route.name.is_layout_builder_ui service core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\Cache\LayoutBuilderUiCacheContext
cache_context.session service core/core.services.yml Drupal\Core\Cache\Context\SessionCacheContext
cache_context.session.exists service core/core.services.yml Drupal\Core\Cache\Context\SessionExistsCacheContext
cache_context.theme service core/core.services.yml Drupal\Core\Cache\Context\ThemeCacheContext
cache_context.timezone service core/core.services.yml Drupal\Core\Cache\Context\TimeZoneCacheContext
cache_context.url service core/core.services.yml Drupal\Core\Cache\Context\UrlCacheContext
cache_context.url.path service core/core.services.yml Drupal\Core\Cache\Context\PathCacheContext
cache_context.url.path.is_front service core/core.services.yml Drupal\Core\Cache\Context\IsFrontPathCacheContext
cache_context.url.path.parent service core/core.services.yml Drupal\Core\Cache\Context\PathParentCacheContext
cache_context.url.query_args service core/core.services.yml Drupal\Core\Cache\Context\QueryArgsCacheContext
cache_context.url.query_args.pagers service core/core.services.yml Drupal\Core\Cache\Context\PagersCacheContext
cache_context.url.site service core/core.services.yml Drupal\Core\Cache\Context\SiteCacheContext
cache_context.user service core/core.services.yml Drupal\Core\Cache\Context\UserCacheContext
cache_context.user.is_super_user service core/core.services.yml Drupal\Core\Cache\Context\IsSuperUserCacheContext
cache_context.user.node_grants service core/modules/node/node.services.yml Drupal\node\Cache\NodeAccessGrantsCacheContext
cache_context.user.permissions service core/core.services.yml Drupal\Core\Cache\Context\AccountPermissionsCacheContext
cache_context.user.roles service core/core.services.yml Drupal\Core\Cache\Context\UserRolesCacheContext
cache_context.views_test_cache_context service core/modules/views/tests/modules/views_test_data/views_test_data.services.yml Drupal\views_test_data\Cache\ViewsTestCacheContext
cache_context.workspace service core/modules/workspaces/workspaces.services.yml Drupal\workspaces\WorkspaceCacheContext
cache_contexts_manager service core/core.services.yml Drupal\Core\Cache\Context\CacheContextsManager
CalculatedCacheContextInterface interface core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php Provides an interface for defining a calculated cache context service.
CalculatedCacheContextInterface.php file core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php
CalculatedCacheContextInterface::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php Gets the cacheability metadata for the context based on the parameter value.
CalculatedCacheContextInterface::getContext function core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php Returns the string representation of the cache context.
CalculatedCacheContextInterface::getLabel function core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php Returns the label of the cache context.
ClaroLayoutBuilderTest::testContextualLinks function core/tests/Drupal/FunctionalTests/Theme/ClaroLayoutBuilderTest.php Tests the layout builder has expected contextual links with Claro.
ClaroMenuUiJavascriptTest::testBlockContextualLinks function core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroMenuUiJavascriptTest.php Intentionally empty method.
CommentCacheTagsTest::getAdditionalCacheContextsForEntity function core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php Returns the additional (non-standard) cache contexts for the tested entity.
CommentCacheTagsTest::getDefaultCacheContexts function core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php Gets the default cache contexts for rendered entities.
CommentResourceTestBase::getExpectedCacheContexts function core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
CommentTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/CommentTest.php The expected cache contexts for the GET/HEAD response of the test entity.

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