Search for context

  1. Search 7.x for context
  2. Search 8.9.x for context
  3. Search 10.3.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
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.
CKEditorPluginContextualInterface interface core/modules/ckeditor/src/CKEditorPluginContextualInterface.php Defines an interface for contextually enabled CKEditor plugins.
CKEditorPluginContextualInterface.php file core/modules/ckeditor/src/CKEditorPluginContextualInterface.php
CKEditorPluginContextualInterface::isEnabled function core/modules/ckeditor/src/CKEditorPluginContextualInterface.php Checks if this plugin should be enabled based on the editor configuration.
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.
CommentNameConstraintValidator::$context property core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php Validator 2.5 and upwards compatible execution context.
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.
CommentTranslationUITest::$defaultCacheContexts property core/modules/comment/tests/src/Functional/CommentTranslationUITest.php Default cache contexts expected on a non-translated entity.
ComputedString::getCacheContexts function core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php The cache contexts associated with this object.
Condition::$context_definitions property core/lib/Drupal/Core/Condition/Annotation/Condition.php An array of context definitions describing the context used by the plugin.
ConditionPluginCollection::$conditionContexts property core/lib/Drupal/Core/Condition/ConditionPluginCollection.php An array of collected contexts for conditions.

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