Search for setContext

  1. Search 7.x for setContext
  2. Search 9.5.x for setContext
  3. Search 10.3.x for setContext
  4. Search 11.x for setContext
  5. Other projects
Title Object type File name Summary
AccessAwareRouter::setContext function core/lib/Drupal/Core/Routing/AccessAwareRouter.php
Context::setContextValue function core/lib/Drupal/Core/Plugin/Context/Context.php Sets the context value.
ContextAwarePluginBase::setContext function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php Set a context on this plugin.
ContextAwarePluginBase::setContext function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Set a context on this plugin.
ContextAwarePluginBase::setContextMapping function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php Sets a mapping of the expected assignment names to their context names.
ContextAwarePluginBase::setContextValue function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Sets the value for a defined context.
ContextAwarePluginBase::setContextValue function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php Sets the value for a defined context.
ContextAwarePluginBaseTest::testSetContextValue function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php @covers ::setContextValue
@group legacy
ContextAwarePluginInterface::setContext function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Set a context on this plugin.
ContextAwarePluginInterface::setContextMapping function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Sets a mapping of the expected assignment names to their context names.
ContextAwarePluginInterface::setContextValue function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Sets the value for a defined context.
ContextAwareVariantInterface::setContexts function core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php Sets the context values for this display variant.
ContextTest::testSetContextValueCacheableDependency function core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php @covers ::setContextValue
ContextTest::testSetContextValueTypedData function core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php @covers ::setContextValue
DefaultsSectionStorage::setContext function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Set a context on this plugin.
EntityAdapterUnitTest::testSetContext function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::setContext
MetadataBubblingUrlGenerator::setContext function core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php
NullGenerator::setContext function core/lib/Drupal/Core/Routing/NullGenerator.php
PageDisplayVariantSelectionEvent::setContexts function core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php Sets the contexts to be passed to the page display variant.
PoItem::setContext function core/lib/Drupal/Component/Gettext/PoItem.php Set the context this translation belongs to.
SupernovaGenerator::setContext function core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php
TestContextAwarePlugin::$setContextCalled property core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php Indicates if ::setContext() has been called or not.
TestContextAwarePlugin::setContext function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php Set a context on this plugin.
TestDisplayVariant::setContexts function core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php Sets the contexts.
TypedData::setContext function core/lib/Drupal/Core/TypedData/TypedData.php Sets the context of a property or item via a context aware parent.
TypedDataInterface::setContext function core/lib/Drupal/Core/TypedData/TypedDataInterface.php Sets the context of a property or item via a context aware parent.
UrlGenerator::setContext function core/lib/Drupal/Core/Routing/UrlGenerator.php

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