Search for context
- Search 7.x for context
- Search 9.5.x for context
- Search 8.9.x for context
- Search 10.3.x for context
- Other projects
Exact matches
Title | Object type | File name | Summary |
---|---|---|---|
Context | class | core/ |
A Drupal specific context wrapper class. |
Context | class | core/ |
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/ |
Gets a context object from an entity. |
EntityContext::fromEntityType | function | core/ |
Gets a context from an entity type. |
EntityContext::fromEntityTypeId | function | core/ |
Gets a context from an entity type ID. |
EntityContextDefinition | class | core/ |
Defines a class to provide entity context definitions. |
EntityContextDefinition.php | file | core/ |
|
EntityContextDefinition::fromEntity | function | core/ |
Creates a context definition from a given entity object. |
EntityContextDefinition::fromEntityType | function | core/ |
Creates a context definition from a given entity type. |
EntityContextDefinition::fromEntityTypeId | function | core/ |
Creates a context definition from a given entity type ID. |
EntityContextDefinition::getConstraintObjects | function | core/ |
Extracts an array of constraints for a context definition object. |
EntityContextDefinition::getEntityTypeId | function | core/ |
Returns the entity type ID of this context. |
EntityContextDefinition::getSampleValues | function | core/ |
Returns typed data objects representing this context definition. |
EntityContextDefinition::__construct | function | core/ |
Constructs a new context definition object. |
EntityContextDefinitionIsSatisfiedTest | class | core/ |
@coversDefaultClass \Drupal\Core\Plugin\Context\EntityContextDefinition @group Plugin |
EntityContextDefinitionIsSatisfiedTest.php | file | core/ |
|
EntityContextDefinitionIsSatisfiedTest::$entityTypeBundleInfo | property | core/ |
The entity type bundle info. |
EntityContextDefinitionIsSatisfiedTest::$entityTypeManager | property | core/ |
The entity type manager. |
EntityContextDefinitionIsSatisfiedTest::assertRequirementIsSatisfied | function | core/ |
Asserts that the requirement is satisfied as expected. |
EntityContextDefinitionIsSatisfiedTest::providerTestIsSatisfiedBy | function | core/ |
Provides test data for ::testIsSatisfiedBy(). |
EntityContextDefinitionIsSatisfiedTest::providerTestIsSatisfiedByGenerateBundledEntity | function | core/ |
Provides test data for ::testIsSatisfiedByGenerateBundledEntity(). |
EntityContextDefinitionIsSatisfiedTest::providerTestIsSatisfiedByPassBundledEntity | function | core/ |
Provides test data for ::testIsSatisfiedByPassBundledEntity(). |
EntityContextDefinitionIsSatisfiedTest::setUp | function | core/ |
|
EntityContextDefinitionIsSatisfiedTest::testIsSatisfiedBy | function | core/ |
@covers ::isSatisfiedBy @covers ::dataTypeMatches @covers ::getSampleValues @covers ::getConstraintObjects |
EntityContextDefinitionIsSatisfiedTest::testIsSatisfiedByGenerateBundledEntity | function | core/ |
@covers ::isSatisfiedBy @covers ::dataTypeMatches @covers ::getSampleValues @covers ::getConstraintObjects |
EntityContextDefinitionIsSatisfiedTest::testIsSatisfiedByPassBundledEntity | function | core/ |
@covers ::isSatisfiedBy @covers ::dataTypeMatches @covers ::getSampleValues @covers ::getConstraintObjects |
EntityContextTypedDataTest | class | core/ |
Tests the interaction between entity context and typed data. |
EntityContextTypedDataTest.php | file | core/ |
|
EntityContextTypedDataTest::$modules | property | core/ |
Modules to install. |
EntityContextTypedDataTest::testValidateConfigEntityContext | function | core/ |
Tests that entity contexts wrapping a config entity can be validated. |
EntityDisplayBase::$displayContext | property | core/ |
Context in which this entity will be used (e.g. 'view', 'form'). |
EntityDisplayFormBase::$displayContext | property | core/ |
The display context. Either 'view' or 'form'. |
EntityDisplayModeFormBase::$displayContext | property | core/ |
The display context. Either 'view' or 'form'. |
EntityDisplayModeFormBase::getDisplayByContext | function | core/ |
Returns View or Form display based on display context. |
EntityField::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
EntityFieldRenderer::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
EntityFormDisplay::$displayContext | property | core/ |
Context in which this entity will be used (e.g. 'view', 'form'). |
EntityFormDisplayEditForm::$displayContext | property | core/ |
The display context. Either 'view' or 'form'. |
EntityFormDisplayResourceTestBase::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
EntityListBuilderTest::testCacheContexts | function | core/ |
Tests that the correct cache contexts are set. |
EntityRepository::$contextRepository | property | core/ |
The context repository service. |
EntityRepository::getContentLanguageFromContexts | function | core/ |
Retrieves the current content language from the specified contexts. |
EntityRepository::getTranslationFromContext | function | core/ |
Gets the entity translation to be used in the given context. |
EntityRepositoryInterface::CONTEXT_ID_LEGACY_CONTEXT_OPERATION | constant | core/ |
|
EntityRepositoryInterface::getTranslationFromContext | function | core/ |
Gets the entity translation to be used in the given context. |
EntityRepositoryTest::$contextRepository | property | core/ |
The context repository. |
EntityRepositoryTest::getLanguageContexts | function | core/ |
Returns a set of language contexts matching the specified language. |
EntityRepositoryTest::testGetTranslationFromContext | function | core/ |
Tests the getTranslationFromContext() method. |
EntityResource::executeQueryInRenderContext | function | core/ |
Executes the query in a render context, to catch bubbled cacheability. |
EntityResourceTestBase::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
EntityTestComputedFieldNormalizerTest::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
EntityTestComputedFieldTest::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
Pagination
- Previous page
- Page 17
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.