Search for all

  1. Search 7.x-2.x for all
  2. Other projects
Title Object type File name Summary
ContextDefinition::$allowNull property src/Context/ContextDefinition.php Whether the context value is allowed to be NULL or not.
ContextDefinition::$assignmentRestriction property src/Context/ContextDefinition.php The assignment restriction of this context.
ContextDefinition::$definition property src/Context/Annotation/ContextDefinition.php The ContextDefinitionInterface object.
ContextDefinition::$getter property src/Context/ContextDefinition.php Name of getter function for this context variable.
ContextDefinition::$nameMap property src/Context/ContextDefinition.php The mapping of config export keys to internal properties.
ContextDefinition::create function src/Context/ContextDefinition.php The created context definition object.
ContextDefinition::createFromArray function src/Context/ContextDefinition.php Creates a definition object from an exported array of values.
ContextDefinition::get function src/Context/Annotation/ContextDefinition.php Returns the value of an annotation.
ContextDefinition::getAssignmentRestriction function src/Context/ContextDefinition.php Determines if this context has an assignment restriction.
ContextDefinition::getGetter function src/Context/ContextDefinition.php
ContextDefinition::hasGetter function src/Context/ContextDefinition.php
ContextDefinition::isAllowedNull function src/Context/ContextDefinition.php Determines if the context value is allowed to be NULL.
ContextDefinition::setAllowNull function src/Context/ContextDefinition.php Sets the "allow NULL value" behavior.
ContextDefinition::setAssignmentRestriction function src/Context/ContextDefinition.php Sets the assignment restriction mode for this context.
ContextDefinition::toArray function src/Context/ContextDefinition.php Exports the definition as an array.
ContextDefinition::__construct function src/Context/ContextDefinition.php Constructs a new context definition object.
ContextDefinition::__construct function src/Context/Annotation/ContextDefinition.php Constructs a new context definition object.
ContextDefinitionInterface interface src/Context/ContextDefinitionInterface.php Context definition information required by Rules.
ContextDefinitionInterface.php file src/Context/ContextDefinitionInterface.php
ContextDefinitionInterface::ASSIGNMENT_RESTRICTION_INPUT constant src/Context/ContextDefinitionInterface.php Constants for the context assignment restriction mode.
ContextDefinitionInterface::ASSIGNMENT_RESTRICTION_SELECTOR constant src/Context/ContextDefinitionInterface.php
ContextDefinitionInterface::getAssignmentRestriction function src/Context/ContextDefinitionInterface.php Determines if this context has an assignment restriction.
ContextDefinitionInterface::isAllowedNull function src/Context/ContextDefinitionInterface.php Determines if the context value is allowed to be NULL.
ContextDefinitionInterface::setAllowNull function src/Context/ContextDefinitionInterface.php Sets the "allow NULL value" behavior.
ContextDefinitionInterface::setAssignmentRestriction function src/Context/ContextDefinitionInterface.php Sets the assignment restriction mode for this context.
ContextDefinitionInterface::toArray function src/Context/ContextDefinitionInterface.php Exports the definition as an array.
ContextFormTrait trait src/Context/Form/ContextFormTrait.php Provides form logic for handling contexts when configuring an expression.
ContextFormTrait.php file src/Context/Form/ContextFormTrait.php
ContextFormTrait::buildContextForm function src/Context/Form/ContextFormTrait.php Provides the form part for a context parameter.
ContextFormTrait::buildProvidedContextForm function src/Context/Form/ContextFormTrait.php Provides the form part for a 'provided' context parameter.
ContextFormTrait::getContextConfigFromFormValues function src/Context/Form/ContextFormTrait.php Creates a context config object from the submitted form values.
ContextFormTrait::switchContextMode function src/Context/Form/ContextFormTrait.php Submit callback: switch a context to data selector or direct input mode.
ContextHandlerIntegrityTrait trait src/Context/ContextHandlerIntegrityTrait.php Extends the context handler trait with support for checking integrity.
ContextHandlerIntegrityTrait.php file src/Context/ContextHandlerIntegrityTrait.php
ContextHandlerIntegrityTrait::checkContextConfigIntegrity function src/Context/ContextHandlerIntegrityTrait.php Performs the integrity check.
ContextHandlerIntegrityTrait::checkDataTypeCompatible function src/Context/ContextHandlerIntegrityTrait.php Checks that the data type of a mapped variable matches the expectation.
ContextHandlerTrait trait src/Context/ContextHandlerTrait.php Provides methods for handling context based on the plugin configuration.
ContextHandlerTrait.php file src/Context/ContextHandlerTrait.php
ContextHandlerTrait::$processorManager property src/Context/ContextHandlerTrait.php The data processor plugin manager used to process context variables.
ContextHandlerTrait::addProvidedContext function src/Context/ContextHandlerTrait.php Adds provided context values from the plugin to the execution state.
ContextHandlerTrait::addProvidedContextDefinitions function src/Context/ContextHandlerTrait.php Adds the definitions of provided context to the execution metadata state.
ContextHandlerTrait::assertMetadata function src/Context/ContextHandlerTrait.php Asserts additional metadata.
ContextHandlerTrait::getMappedDefinition function src/Context/ContextHandlerTrait.php Gets the definition of the data that is mapped to the given context.
ContextHandlerTrait::getSelectedData function src/Context/ContextHandlerTrait.php Gets definitions of all selected data at configuration time.
ContextHandlerTrait::prepareContext function src/Context/ContextHandlerTrait.php Prepares plugin context based upon the set context configuration.
ContextHandlerTrait::prepareContextWithMetadata function src/Context/ContextHandlerTrait.php Prepares plugin context based upon the set context configuration.
ContextHandlerTrait::processData function src/Context/ContextHandlerTrait.php Process data context on the plugin, usually before it gets executed.
ContextHandlerTrait::processValue function src/Context/ContextHandlerTrait.php Processes a single value.
ContextHandlerTraitTest class tests/src/Unit/ContextHandlerTraitTest.php @coversDefaultClass \Drupal\rules\Context\ContextHandlerTrait
@group Rules
ContextHandlerTraitTest.php file tests/src/Unit/ContextHandlerTraitTest.php