Search for context

  1. Search 7.x for context
  2. Search 8.9.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
ContextAwarePluginInterface::setContextValue function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Sets the value for a defined context.
ContextAwarePluginInterface::validateContexts function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Validates the set values for the defined contexts.
ContextAwarePluginManagerInterface interface core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerInterface.php Provides an interface for plugin managers that support context-aware plugins.
ContextAwarePluginManagerInterface.php file core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerInterface.php
ContextAwarePluginManagerInterface::getDefinitionsForContexts function core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerInterface.php Determines plugins whose constraints are satisfied by a set of contexts.
ContextAwarePluginManagerTrait trait core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerTrait.php Provides a trait for plugin managers that support context-aware plugins.
ContextAwarePluginManagerTrait.php file core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerTrait.php
ContextAwarePluginManagerTrait::contextHandler function core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerTrait.php Wraps the context handler.
ContextAwarePluginManagerTrait::getDefinitions function core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerTrait.php See \Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinitions().
ContextAwarePluginManagerTrait::getDefinitionsForContexts function core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerTrait.php See \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface::getDefinitionsForContexts().
ContextAwarePluginTrait trait core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php Provides a trait to add context-aware functionality to plugins.
ContextAwarePluginTrait.php file core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::$context property core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php The data objects representing the context of this plugin.
ContextAwarePluginTrait::$initializedContextConfig property core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php Tracks whether the context has been initialized from configuration.
ContextAwarePluginTrait::getCacheContexts function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getCacheMaxAge function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getCacheTags function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getContext function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getContextDefinition function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getContextDefinitions function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getContextMapping function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getContexts function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getContextValue function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getContextValues function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getPluginDefinition function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::setContext function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::setContextMapping function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::setContextValue function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::validateContexts function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTraitTest class core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @coversDefaultClass \Drupal\Core\Plugin\ContextAwarePluginTrait
ContextAwarePluginTraitTest.php file core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php
ContextAwarePluginTraitTest::$configurablePlugin property core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php The configurable plugin instance under test.
ContextAwarePluginTraitTest::$plugin property core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php The plugin instance under test.
ContextAwarePluginTraitTest::setUp function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php
ContextAwarePluginTraitTest::testConfigurableGetContextValueFromConfiguration function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::getContextValue
@group legacy
ContextAwarePluginTraitTest::testGetContextDefinition function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::getContextDefinition
ContextAwarePluginTraitTest::testGetContextDefinitions function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::getContextDefinitions
ContextAwarePluginTraitTest::testGetContextValue function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::getContextValue
ContextAwarePluginTraitTest::testGetContextValueFromConfiguration function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::getContextValue
@group legacy
ContextAwarePluginTraitTest::testSetContextValue function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::setContextValue
ContextAwareVariantInterface interface core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php Provides an interface for variant plugins that are context-aware.
ContextAwareVariantInterface.php file core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php
ContextAwareVariantInterface::getContexts function core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php Gets the values for all defined contexts.
ContextAwareVariantInterface::setContexts function core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php Sets the context values for this display variant.
ContextCacheKeys class core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php A value object to store generated cache keys with its cacheability metadata.
ContextCacheKeys.php file core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php
ContextCacheKeys::$keys property core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php The generated cache keys.
ContextCacheKeys::getKeys function core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php Gets the generated cache keys.
ContextCacheKeys::__construct function core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php Constructs a ContextCacheKeys object.
ContextDefinition class core/lib/Drupal/Core/Annotation/ContextDefinition.php Defines a context definition annotation object.

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