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
EntityContextTypedDataTest class core/tests/Drupal/KernelTests/Core/Plugin/EntityContextTypedDataTest.php Tests the interaction between entity context and typed data.
EntityContextTypedDataTest.php file core/tests/Drupal/KernelTests/Core/Plugin/EntityContextTypedDataTest.php
EntityContextTypedDataTest::$modules property core/tests/Drupal/KernelTests/Core/Plugin/EntityContextTypedDataTest.php Modules to install.
EntityContextTypedDataTest::testValidateConfigEntityContext function core/tests/Drupal/KernelTests/Core/Plugin/EntityContextTypedDataTest.php Tests that entity contexts wrapping a config entity can be validated.
EntityDisplayBase::$displayContext property core/lib/Drupal/Core/Entity/EntityDisplayBase.php Context in which this entity will be used (e.g. 'view', 'form').
EntityDisplayFormBase::$displayContext property core/modules/field_ui/src/Form/EntityDisplayFormBase.php The display context. Either 'view' or 'form'.
EntityDisplayModeFormBase::$displayContext property core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php The display context. Either 'view' or 'form'.
EntityDisplayModeFormBase::getDisplayByContext function core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php Returns View or Form display based on display context.
EntityField::getCacheContexts function core/modules/views/src/Plugin/views/field/EntityField.php The cache contexts associated with this object.
EntityFieldRenderer::getCacheContexts function core/modules/views/src/Entity/Render/EntityFieldRenderer.php The cache contexts associated with this object.
EntityFormDisplay::$displayContext property core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php Context in which this entity will be used (e.g. 'view', 'form').
EntityFormDisplayEditForm::$displayContext property core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php The display context. Either 'view' or 'form'.
EntityFormDisplayResourceTestBase::getExpectedCacheContexts function core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityListBuilderTest::testCacheContexts function core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php Tests that the correct cache contexts are set.
EntityRepository::$contextRepository property core/lib/Drupal/Core/Entity/EntityRepository.php The context repository service.
EntityRepository::getContentLanguageFromContexts function core/lib/Drupal/Core/Entity/EntityRepository.php Retrieves the current content language from the specified contexts.
EntityRepository::getTranslationFromContext function core/lib/Drupal/Core/Entity/EntityRepository.php
EntityRepositoryInterface::CONTEXT_ID_LEGACY_CONTEXT_OPERATION constant core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php
EntityRepositoryInterface::getTranslationFromContext function core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php Gets the entity translation to be used in the given context.
EntityRepositoryTest::$contextRepository property core/tests/Drupal/Tests/Core/Entity/EntityRepositoryTest.php The context repository.
EntityRepositoryTest::getLanguageContexts function core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php Returns a set of language contexts matching the specified language.
EntityRepositoryTest::testGetTranslationFromContext function core/tests/Drupal/Tests/Core/Entity/EntityRepositoryTest.php Tests the getTranslationFromContext() method.
EntityResource::executeQueryInRenderContext function core/modules/jsonapi/src/Controller/EntityResource.php Executes the query in a render context, to catch bubbled cacheability.
EntityResourceTestBase::getExpectedCacheContexts function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestComputedFieldNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestComputedFieldNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestComputedFieldTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/EntityTestComputedFieldTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestJsonInternalPropertyNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestJsonInternalPropertyNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestLabelResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestMapFieldResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestTextItemNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestViewGrantsCacheContext class core/modules/system/tests/modules/entity_test/src/Cache/EntityTestViewGrantsCacheContext.php Defines the entity_test view grants cache context service.
EntityTestViewGrantsCacheContext.php file core/modules/system/tests/modules/entity_test/src/Cache/EntityTestViewGrantsCacheContext.php
EntityTestViewGrantsCacheContext::getCacheableMetadata function core/modules/system/tests/modules/entity_test/src/Cache/EntityTestViewGrantsCacheContext.php Gets the cacheability metadata for the context.
EntityTestViewGrantsCacheContext::getContext function core/modules/system/tests/modules/entity_test/src/Cache/EntityTestViewGrantsCacheContext.php Returns the string representation of the cache context.
EntityTestViewGrantsCacheContext::getLabel function core/modules/system/tests/modules/entity_test/src/Cache/EntityTestViewGrantsCacheContext.php Returns the label of the cache context.
EntityType::$list_cache_contexts property core/lib/Drupal/Core/Entity/EntityType.php
EntityType::getListCacheContexts function core/lib/Drupal/Core/Entity/EntityType.php The list cache contexts associated with this entity type.
EntityTypeInterface::getListCacheContexts function core/lib/Drupal/Core/Entity/EntityTypeInterface.php The list cache contexts associated with this entity type.
EntityUnitTest::testCacheContexts function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::getCacheContexts
@covers ::addCacheContexts
EntityViewAlterTest::testContextualLinksRemoved function core/modules/layout_builder/tests/src/Kernel/EntityViewAlterTest.php Tests that contextual links are removed when rendering Layout Builder.
EntityViewBuilder::addContextualLinks function core/lib/Drupal/Core/Entity/EntityViewBuilder.php Add contextual links.
EntityViewDisplay::$displayContext property core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php Context in which this entity will be used (e.g. 'view', 'form').
EntityViewDisplayEditForm::$displayContext property core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php The display context. Either 'view' or 'form'.
EntityViewDisplayResourceTestBase::getExpectedCacheContexts function core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityWithUriCacheTagsTestBase::getDefaultCacheContexts function core/modules/system/tests/src/Functional/Entity/EntityWithUriCacheTagsTestBase.php Gets the default cache contexts for rendered entities.
ExecutionContext class core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php Defines an execution context class.
ExecutionContext class core/lib/Drupal/Core/Validation/ExecutionContext.php Defines an execution context class.
ExecutionContext.php file core/lib/Drupal/Core/Validation/ExecutionContext.php
ExecutionContext.php file core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php
ExecutionContext::$constraint property core/lib/Drupal/Core/Validation/ExecutionContext.php The currently validated constraint.

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