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
OptionalContextConditionTest.php file core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php
OptionalContextConditionTest::$modules property core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php
OptionalContextConditionTest::testContextAvailable function core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php Tests with both contexts mapped to the same user.
OptionalContextConditionTest::testContextMissing function core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php Tests with both contexts mapped to the same user.
OptionalContextConditionTest::testContextNoValue function core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php Tests with both contexts mapped to the same user.
OverridesSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
OverridesSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
OverridesSectionStorageTest::testDeriveContextsFromRoute function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php @covers ::deriveContextsFromRoute[[api-linebreak]]
OverridesSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php @covers ::getContexts[[api-linebreak]]
OverridesSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php @covers ::getContextsDuringPreview[[api-linebreak]]
PageDisplayVariantSelectionEvent::$contexts property core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php An array of collected contexts to pass to the page display variant.
PageDisplayVariantSelectionEvent::getContexts function core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php Gets the contexts that were set during event dispatch.
PageDisplayVariantSelectionEvent::setContexts function core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php Sets the contexts to be passed to the page display variant.
PagersCacheContext class core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php Defines a cache context for "per page in a pager" caching.
PagersCacheContext.php file core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
PagersCacheContext::$deprecatedProperties property core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
PagersCacheContext::$pagerParams property core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php The pager parameters.
PagersCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
PagersCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
PagersCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
PagersCacheContext::__construct function core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php Constructs a new PagersCacheContext object.
PagerTest::testPagerQueryParametersAndCacheContext function core/modules/system/tests/src/Functional/Pager/PagerTest.php Test proper functioning of the query parameters and the pager cache context.
PagerTestController::showPagerCacheContext function core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php #pre_render callback for #type => pager that shows the pager cache context.
PathAliasHalJsonTestBase::getExpectedCacheContexts function core/modules/path_alias/tests/src/Functional/Hal/PathAliasHalJsonTestBase.php
PathAliasResourceTestBase::getExpectedCacheContexts function core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php
PathBasedBreadcrumbBuilder::$context property core/modules/system/src/PathBasedBreadcrumbBuilder.php The router request context.
PathBasedBreadcrumbBuilderTest::$context property core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php The mocked route request context.
PathCacheContext class core/lib/Drupal/Core/Cache/Context/PathCacheContext.php Defines the PathCacheContext service, for "per URL path" caching.
PathCacheContext.php file core/lib/Drupal/Core/Cache/Context/PathCacheContext.php
PathCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/PathCacheContext.php
PathCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/PathCacheContext.php
PathCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/PathCacheContext.php
PathParentCacheContext class core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php Defines a cache context service for path parents.
PathParentCacheContext.php file core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php
PathParentCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php
PathParentCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php
PathParentCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php
PathParentCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\PathParentCacheContext[[api-linebreak]]
@group Cache
PathParentCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php
PathParentCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php Provides a list of paths and expected cache contexts.
PathParentCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php @covers ::getContext[[api-linebreak]]
Permission::getCacheContexts function core/modules/user/src/Plugin/views/access/Permission.php
PirateDayCacheContext class core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php Defines the PirateDayCacheContext service that allows to cache the booty.
PirateDayCacheContext.php file core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php
PirateDayCacheContext::getCacheableMetadata function core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php
PirateDayCacheContext::getContext function core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php
PirateDayCacheContext::getLabel function core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php
PirateDayCacheContext::isPirateDay function core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php Returns whether or not it is Pirate Day.
PirateDayCacheContext::PIRATE_DAY_MAX_AGE constant core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php The length of Pirate Day. It lasts 24 hours.
plugin.manager.menu.contextual_link service core/core.services.yml Drupal\Core\Menu\ContextualLinkManager

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