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 10.3.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
EntityContext::fromEntity function core/lib/Drupal/Core/Plugin/Context/EntityContext.php Gets a context object from an entity.
EntityContext::fromEntityType function core/lib/Drupal/Core/Plugin/Context/EntityContext.php Gets a context from an entity type.
EntityContext::fromEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContext.php Gets a context from an entity type ID.
EntityContextDefinition class core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Defines a class to provide entity context definitions.
EntityContextDefinition.php file core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php
EntityContextDefinition::fromEntity function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Creates a context definition from a given entity object.
EntityContextDefinition::fromEntityType function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Creates a context definition from a given entity type.
EntityContextDefinition::fromEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Creates a context definition from a given entity type ID.
EntityContextDefinition::getConstraintObjects function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Extracts an array of constraints for a context definition object.
EntityContextDefinition::getEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Returns the entity type ID of this context.
EntityContextDefinition::getSampleValues function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Returns typed data objects representing this context definition.
EntityContextDefinition::__construct function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Constructs a new context definition object.
EntityContextDefinitionIsSatisfiedTest class core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php @coversDefaultClass \Drupal\Core\Plugin\Context\EntityContextDefinition
@group Plugin
EntityContextDefinitionIsSatisfiedTest.php file core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php
EntityContextDefinitionIsSatisfiedTest::$entityTypeBundleInfo property core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php The entity type bundle info.
EntityContextDefinitionIsSatisfiedTest::$entityTypeManager property core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php The entity type manager.
EntityContextDefinitionIsSatisfiedTest::assertRequirementIsSatisfied function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php Asserts that the requirement is satisfied as expected.
EntityContextDefinitionIsSatisfiedTest::providerTestIsSatisfiedBy function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php Provides test data for ::testIsSatisfiedBy().
EntityContextDefinitionIsSatisfiedTest::providerTestIsSatisfiedByGenerateBundledEntity function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php Provides test data for ::testIsSatisfiedByGenerateBundledEntity().
EntityContextDefinitionIsSatisfiedTest::providerTestIsSatisfiedByPassBundledEntity function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php Provides test data for ::testIsSatisfiedByPassBundledEntity().
EntityContextDefinitionIsSatisfiedTest::setUp function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php
EntityContextDefinitionIsSatisfiedTest::testIsSatisfiedBy function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php @covers ::isSatisfiedBy
@covers ::dataTypeMatches
@covers ::getSampleValues
@covers ::getConstraintObjects
EntityContextDefinitionIsSatisfiedTest::testIsSatisfiedByGenerateBundledEntity function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php @covers ::isSatisfiedBy
@covers ::dataTypeMatches
@covers ::getSampleValues
@covers ::getConstraintObjects
EntityContextDefinitionIsSatisfiedTest::testIsSatisfiedByPassBundledEntity function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php @covers ::isSatisfiedBy
@covers ::dataTypeMatches
@covers ::getSampleValues
@covers ::getConstraintObjects
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 Gets the entity translation to be used in the given context.
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.

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