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
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::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::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.
ContextDefinition class core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Defines a class for context definitions.
ContextDefinition.php file core/lib/Drupal/Core/Annotation/ContextDefinition.php
ContextDefinition.php file core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php
ContextDefinition::$constraints property core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php An array of constraints.
ContextDefinition::$dataType property core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php The data type of the data.
ContextDefinition::$defaultValue property core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php The default value.
ContextDefinition::$definition property core/lib/Drupal/Core/Annotation/ContextDefinition.php The ContextDefinitionInterface object.
ContextDefinition::$description property core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php The human-readable description.
ContextDefinition::$isMultiple property core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Whether the data is multi-valued, i.e. a list of data items.
ContextDefinition::$isRequired property core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Determines whether a data value is required.
ContextDefinition::$label property core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php The human-readable label.
ContextDefinition::addConstraint function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Adds a validation constraint.
ContextDefinition::create function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Creates a new context definition.
ContextDefinition::dataTypeMatches function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Checks if this definition's data type matches that of the given context.
ContextDefinition::get function core/lib/Drupal/Core/Annotation/ContextDefinition.php Returns the value of an annotation.
ContextDefinition::getConstraint function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Gets a validation constraint.
ContextDefinition::getConstraintObjects function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Extracts an array of constraints for a context definition object.
ContextDefinition::getConstraints function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Gets an array of validation constraints.
ContextDefinition::getDataDefinition function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Returns the data definition of the defined context.
ContextDefinition::getDataType function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Gets the data type needed by the context.
ContextDefinition::getDefaultValue function core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php Gets the default value for this context definition.
ContextDefinition::getDefinitionClass function core/lib/Drupal/Core/Annotation/ContextDefinition.php Determines the context definition class to use.

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