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
Drupal\Core\Menu\ContextualLinkManagerInterface service core/core.services.yml
Drupal\Core\Plugin\Context\ContextHandlerInterface service core/core.services.yml
Drupal\Core\Plugin\Context\ContextRepositoryInterface service core/core.services.yml
Drupal\Core\Routing\AdminContext service core/core.services.yml
Drupal\Core\Routing\RequestContext service core/core.services.yml
Drupal\jsonapi\Context\FieldResolver service core/modules/jsonapi/jsonapi.services.yml
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 install.
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.
DynamicPageCacheSubscriber::$cacheContexts property core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php The default cache contexts to vary every cache item by.
DynamicPageCacheSubscriber::$cacheContextsManager property core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php The cache contexts manager service.
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/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::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.
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

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