Search for context

  1. Search 7.x for context
  2. Search 9.5.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
drupal-8.block-context-manager-2354889.php file core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php Contains database additions to drupal-8.bare.standard.php.gz for testing the
upgrade path of https://www.drupal.org/node/2354889.
DuplicateContextualLinksTest class core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php Tests the UI for correct contextual links.
DuplicateContextualLinksTest.php file core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php
DuplicateContextualLinksTest::$defaultTheme property core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php The theme to install as the default for testing.
DuplicateContextualLinksTest::$modules property core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php Modules to enable.
DuplicateContextualLinksTest::testSameContextualLinks function core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php Tests the contextual links with same id.
DynamicMenuLinkMock::getCacheContexts function core/tests/Drupal/Tests/Core/Menu/DynamicMenuLinkMock.php The cache contexts associated with this object.
DynamicPageCacheTestController::htmlUncacheableContexts function core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php A route returning a render array (with 'user' context, so uncacheable)
DynamicPageCacheTestController::htmlWithCacheContexts function core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php A route returning a render array (with cache contexts, so cacheable).
EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext function core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php Wraps a controller execution in a render context.
EditorResourceTestBase::getExpectedCacheContexts function core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
Entity::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/Entity.php Returns a context definition for this argument.
EntityAdapterUnitTest::testSetContext function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::setContext
EntityBase::getCacheContexts function core/lib/Drupal/Core/Entity/EntityBase.php The cache contexts associated with this object.
EntityCacheTagsTestBase::getAccessCacheContextsForEntity function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the access cache contexts for the tested entity.
EntityCacheTagsTestBase::getAccessCacheContextsForEntity function core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the access cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntity function core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the additional (non-standard) cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntity function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the additional (non-standard) cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the additional cache tags for the tested entity's listing by type.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing function core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the additional cache tags for the tested entity's listing by type.
EntityContext class core/lib/Drupal/Core/Plugin/Context/EntityContext.php Class to provide a specific entity context.
EntityContext.php file core/lib/Drupal/Core/Plugin/Context/EntityContext.php
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.
EntityContextDefinitionDeprecationTest class core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test deprecated use of ContextDefinition as an EntityContextDefinition.
EntityContextDefinitionDeprecationTest.php file core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php
EntityContextDefinitionDeprecationTest::$compatibilityLayer property core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php The compatibility layer property on the context definition under test.
EntityContextDefinitionDeprecationTest::$definition property core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php The context definition under test.
EntityContextDefinitionDeprecationTest::setUp function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php
EntityContextDefinitionDeprecationTest::testAddConstraint function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that addConstraint() proxies to the compatibility layer.
EntityContextDefinitionDeprecationTest::testGetConstraint function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that getConstraint() proxies to the compatibility layer.
EntityContextDefinitionDeprecationTest::testGetConstraintObjects function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that getConstraintObjects() adds the EntityType constraint.
EntityContextDefinitionDeprecationTest::testGetConstraints function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that getConstraints() proxies to the compatibility layer.
EntityContextDefinitionDeprecationTest::testIsSatisfiedBy function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that isSatisfiedBy() calls the compatibility layer.
EntityContextDefinitionDeprecationTest::testSerialization function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that the BC layer survives serialization and unserialization.
EntityContextDefinitionDeprecationTest::testSetConstraints function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that setConstraints() proxies to the compatibility layer.
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.

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