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 10.3.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
ContextDefinitionInterface::isMultiple function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Determines whether the data is multi-valued, i.e. a list of data items.
ContextDefinitionInterface::isRequired function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Determines whether the context is required.
ContextDefinitionInterface::isSatisfiedBy function core/lib/Drupal/Core/Plugin/Context/ContextDefinitionInterface.php Determines if this definition is satisfied by a context object.
ContextDefinitionInterface::setConstraints function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Sets the array of validation constraints.
ContextDefinitionInterface::setDataType function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Sets the data type needed by the context.
ContextDefinitionInterface::setDefaultValue function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Sets the default data value.
ContextDefinitionInterface::setDescription function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Sets the human readable description.
ContextDefinitionInterface::setLabel function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Sets the human readable label.
ContextDefinitionInterface::setMultiple function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Sets whether the data is multi-valued.
ContextDefinitionInterface::setRequired function core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php Sets whether the data is required.
ContextDefinitionIsSatisfiedTest class core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php @coversDefaultClass \Drupal\Core\Plugin\Context\ContextDefinition
@group Plugin
ContextDefinitionIsSatisfiedTest.php file core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php
ContextDefinitionIsSatisfiedTest::providerTestIsSatisfiedBy function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php Provides test data for ::testIsSatisfiedBy().
ContextDefinitionIsSatisfiedTest::setUp function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php
ContextDefinitionIsSatisfiedTest::testIsSatisfiedBy function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php Tests that context requirements is satisfied as expected.
ContextDefinitionTest class core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php Tests the ContextDefinition class.
ContextDefinitionTest class core/tests/Drupal/KernelTests/Core/Plugin/ContextDefinitionTest.php @coversDefaultClass \Drupal\Core\Plugin\Context\ContextDefinition
@group Plugin
ContextDefinitionTest class core/tests/Drupal/KernelTests/Core/Plugin/Annotation/ContextDefinitionTest.php @coversDefaultClass \Drupal\Core\Annotation\ContextDefinition
@group Plugin
ContextDefinitionTest.php file core/tests/Drupal/KernelTests/Core/Plugin/ContextDefinitionTest.php
ContextDefinitionTest.php file core/tests/Drupal/KernelTests/Core/Plugin/Annotation/ContextDefinitionTest.php
ContextDefinitionTest.php file core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php
ContextDefinitionTest::$modules property core/tests/Drupal/KernelTests/Core/Plugin/ContextDefinitionTest.php Modules to install.
ContextDefinitionTest::$modules property core/tests/Drupal/KernelTests/Core/Plugin/Annotation/ContextDefinitionTest.php Modules to install.
ContextDefinitionTest::providerGetConstraint function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php Data provider for testGetConstraint.
ContextDefinitionTest::providerGetDataDefinition function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php Very simple data provider.
ContextDefinitionTest::testConstraints function core/tests/Drupal/KernelTests/Core/Plugin/Annotation/ContextDefinitionTest.php Tests adding constraints via annotations.
ContextDefinitionTest::testCreateWithEntityDataType function core/tests/Drupal/KernelTests/Core/Plugin/ContextDefinitionTest.php @covers ::create
ContextDefinitionTest::testDefaultValue function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php @covers ::getDefaultValue
@covers ::setDefaultValue
ContextDefinitionTest::testEntityContextDefinitionAssert function core/tests/Drupal/KernelTests/Core/Plugin/ContextDefinitionTest.php @covers ::__construct
ContextDefinitionTest::testGetConstraint function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php @dataProvider providerGetConstraint
@covers ::getConstraint
@uses \Drupal
ContextDefinitionTest::testGetDataDefinition function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php @dataProvider providerGetDataDefinition
@covers ::getDataDefinition
@uses \Drupal
ContextDefinitionTest::testGetDataDefinitionInvalidType function core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionTest.php @dataProvider providerGetDataDefinition
@covers ::getDataDefinition
@uses \Drupal
ContextDefinitionTest::testIsSatisfiedBy function core/tests/Drupal/KernelTests/Core/Plugin/ContextDefinitionTest.php @covers ::isSatisfiedBy
ContextException class core/lib/Drupal/Component/Plugin/Exception/ContextException.php An exception class to be thrown for context plugin exceptions.
ContextException.php file core/lib/Drupal/Component/Plugin/Exception/ContextException.php
ContextHandler class core/lib/Drupal/Core/Plugin/Context/ContextHandler.php Provides methods to handle sets of contexts.
ContextHandler.php file core/lib/Drupal/Core/Plugin/Context/ContextHandler.php
ContextHandler::applyContextMapping function core/lib/Drupal/Core/Plugin/Context/ContextHandler.php Prepares a plugin for evaluation.
ContextHandler::checkRequirements function core/lib/Drupal/Core/Plugin/Context/ContextHandler.php Checks a set of requirements against a set of contexts.
ContextHandler::filterPluginDefinitionsByContexts function core/lib/Drupal/Core/Plugin/Context/ContextHandler.php Determines plugins whose constraints are satisfied by a set of contexts.
ContextHandler::getContextDefinitions function core/lib/Drupal/Core/Plugin/Context/ContextHandler.php Returns the context definitions associated with a plugin definition.
ContextHandler::getMatchingContexts function core/lib/Drupal/Core/Plugin/Context/ContextHandler.php Determines which contexts satisfy the constraints of a given definition.
ContextHandlerInterface interface core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php Provides an interface for handling sets of contexts.
ContextHandlerInterface.php file core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php
ContextHandlerInterface::applyContextMapping function core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php Prepares a plugin for evaluation.
ContextHandlerInterface::checkRequirements function core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php Checks a set of requirements against a set of contexts.
ContextHandlerInterface::filterPluginDefinitionsByContexts function core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php Determines plugins whose constraints are satisfied by a set of contexts.
ContextHandlerInterface::getMatchingContexts function core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php Determines which contexts satisfy the constraints of a given definition.
ContextHandlerTest class core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php @coversDefaultClass \Drupal\Core\Plugin\Context\ContextHandler
@group Plugin
ContextHandlerTest class core/tests/Drupal/KernelTests/Core/Plugin/ContextHandlerTest.php @coversDefaultClass \Drupal\Core\Plugin\Context\ContextHandler

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