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
Context::validate function core/lib/Drupal/Component/Plugin/Context/Context.php Validates the set context value.
Context::__construct function core/lib/Drupal/Core/Plugin/Context/Context.php Create a context object.
Context::__construct function core/lib/Drupal/Component/Plugin/Context/Context.php Create a context object.
ContextAwarePluginAssignmentTrait trait core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php Handles context assignments for context-aware plugins.
ContextAwarePluginAssignmentTrait.php file core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php
ContextAwarePluginAssignmentTrait::addContextAssignmentElement function core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php Builds a form element for assigning a context to a given slot.
ContextAwarePluginAssignmentTrait::contextHandler function core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php Wraps the context handler.
ContextAwarePluginAssignmentTrait::t function core/lib/Drupal/Core/Plugin/ContextAwarePluginAssignmentTrait.php Ensures the t() method is available.
ContextAwarePluginBase class core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php Base class for plugins that are context aware.
ContextAwarePluginBase class core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Base class for plugins that are context aware.
ContextAwarePluginBase.php file core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php
ContextAwarePluginBase.php file core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
ContextAwarePluginBase::$context property core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php The data objects representing the context of this plugin.
ContextAwarePluginBase::$contexts property core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Data objects representing the contexts passed in the plugin configuration.
ContextAwarePluginBase::contextHandler function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php Wraps the context handler.
ContextAwarePluginBase::createContextFromConfiguration function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php
ContextAwarePluginBase::createContextFromConfiguration function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Creates context objects from any context mappings in configuration.
ContextAwarePluginBase::getCacheContexts function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php The cache contexts associated with this object.
ContextAwarePluginBase::getCacheMaxAge function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php The maximum age for which this object may be cached.
ContextAwarePluginBase::getCacheTags function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php The cache tags associated with this object.
ContextAwarePluginBase::getContext function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php This code is identical to the Component in order to pick up a different
Context class.
ContextAwarePluginBase::getContext function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Gets a defined context.
ContextAwarePluginBase::getContextDefinition function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php
ContextAwarePluginBase::getContextDefinition function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Gets a specific context definition of the plugin.
ContextAwarePluginBase::getContextDefinitions function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php
ContextAwarePluginBase::getContextDefinitions function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Gets the context definitions of the plugin.
ContextAwarePluginBase::getContextMapping function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php Gets a mapping of the expected assignment names to their context names.
ContextAwarePluginBase::getContexts function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Gets the defined contexts.
ContextAwarePluginBase::getContextValue function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Gets the value for a defined context.
ContextAwarePluginBase::getContextValues function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Gets the values for all defined contexts.
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/Core/Plugin/ContextAwarePluginBase.php Sets the value for a defined context.
ContextAwarePluginBase::setContextValue function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Sets the value for a defined context.
ContextAwarePluginBase::validateContexts function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Validates the set values for the defined contexts.
ContextAwarePluginBase::__construct function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Overrides \Drupal\Component\Plugin\PluginBase::__construct().
ContextAwarePluginBase::__get function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Implements magic __get() method.
ContextAwarePluginBaseTest class core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php @coversDefaultClass \Drupal\Core\Plugin\ContextAwarePluginBase
ContextAwarePluginBaseTest.php file core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php
ContextAwarePluginBaseTest::$plugin property core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php The plugin instance under test.
ContextAwarePluginBaseTest::setUp function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php
ContextAwarePluginBaseTest::testGetContextDefinition function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php @covers ::getContextDefinition
ContextAwarePluginBaseTest::testGetContextDefinitions function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php @covers ::getContextDefinitions
ContextAwarePluginBaseTest::testGetContextValue function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php @covers ::getContextValue
@group legacy
ContextAwarePluginBaseTest::testSetContextValue function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginBaseTest.php @covers ::setContextValue
@group legacy
ContextAwarePluginDefinition class core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php
ContextAwarePluginDefinitionInterface interface core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionInterface.php Provides an interface for plugin definitions which use contexts.
ContextAwarePluginDefinitionInterface.php file core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionInterface.php
ContextAwarePluginDefinitionInterface::addContextDefinition function core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionInterface.php Adds a context to this plugin definition.

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