Search for rule

  1. Search 7.x-2.x for rule
  2. Other projects
Title Object type File name Summary
RuleExpression class src/Plugin/RulesExpression/RuleExpression.php Provides a rule, executing actions when conditions are met.
RuleExpression.php file src/Plugin/RulesExpression/RuleExpression.php
RuleExpression::$actions property src/Plugin/RulesExpression/RuleExpression.php List of actions that get executed if the conditions are met.
RuleExpression::$conditions property src/Plugin/RulesExpression/RuleExpression.php List of conditions that must be met before actions are executed.
RuleExpression::$expressionManager property src/Plugin/RulesExpression/RuleExpression.php The rules expression plugin manager.
RuleExpression::$rulesDebugLogger property src/Plugin/RulesExpression/RuleExpression.php The rules debug logger channel.
RuleExpression::addAction function src/Plugin/RulesExpression/RuleExpression.php Creates an action expression and adds it to the container.
RuleExpression::addCondition function src/Plugin/RulesExpression/RuleExpression.php Creates a condition expression and adds it to the container.
RuleExpression::addExpression function src/Plugin/RulesExpression/RuleExpression.php Creates and adds an expression.
RuleExpression::addExpressionObject function src/Plugin/RulesExpression/RuleExpression.php Adds an expression object.
RuleExpression::checkIntegrity function src/Plugin/RulesExpression/RuleExpression.php Verifies that this expression is configured correctly.
RuleExpression::create function src/Plugin/RulesExpression/RuleExpression.php Creates an instance of the plugin.
RuleExpression::deleteExpression function src/Plugin/RulesExpression/RuleExpression.php Deletes an expression identified by the specified UUID in the container.
RuleExpression::executeWithState function src/Plugin/RulesExpression/RuleExpression.php Execute the expression with a given Rules state.
RuleExpression::getActions function src/Plugin/RulesExpression/RuleExpression.php Returns the actions of this rule.
RuleExpression::getConditions function src/Plugin/RulesExpression/RuleExpression.php Returns the conditions container of this rule.
RuleExpression::getConfiguration function src/Plugin/RulesExpression/RuleExpression.php Gets this plugin's configuration.
RuleExpression::getExpression function src/Plugin/RulesExpression/RuleExpression.php Looks up the expression by UUID in this container.
RuleExpression::getIterator function src/Plugin/RulesExpression/RuleExpression.php Returns an iterator for expressions in this container.
RuleExpression::prepareExecutionMetadataState function src/Plugin/RulesExpression/RuleExpression.php Prepares the execution metadata state by adding metadata to it.
RuleExpression::setActions function src/Plugin/RulesExpression/RuleExpression.php Sets the action container.
RuleExpression::setConditions function src/Plugin/RulesExpression/RuleExpression.php Sets the condition container.
RuleExpression::__clone function src/Plugin/RulesExpression/RuleExpression.php PHP magic __clone function.
RuleExpression::__construct function src/Plugin/RulesExpression/RuleExpression.php Constructs a new class instance.
RuleExpressionForm class src/Form/Expression/RuleExpressionForm.php Form view structure for rule expressions.
RuleExpressionForm.php file src/Form/Expression/RuleExpressionForm.php
RuleExpressionForm::$rule property src/Form/Expression/RuleExpressionForm.php The rule expression object this form is for.
RuleExpressionForm::form function src/Form/Expression/RuleExpressionForm.php Adds elements specific to the expression to the form.
RuleExpressionForm::submitForm function src/Form/Expression/RuleExpressionForm.php Implements ExpressionFormInterface::submitForm().
RuleExpressionForm::__construct function src/Form/Expression/RuleExpressionForm.php Creates a new object of this class.
RuleExpressionInterface interface src/Engine/RuleExpressionInterface.php Defines a rule.
RuleExpressionInterface.php file src/Engine/RuleExpressionInterface.php
RuleExpressionInterface::addAction function src/Engine/RuleExpressionInterface.php Creates an action expression and adds it to the container.
RuleExpressionInterface::addCondition function src/Engine/RuleExpressionInterface.php Creates a condition expression and adds it to the container.
RuleExpressionInterface::getActions function src/Engine/RuleExpressionInterface.php Returns the actions of this rule.
RuleExpressionInterface::getConditions function src/Engine/RuleExpressionInterface.php Returns the conditions container of this rule.
RuleExpressionInterface::setActions function src/Engine/RuleExpressionInterface.php Sets the action container.
RuleExpressionInterface::setConditions function src/Engine/RuleExpressionInterface.php Sets the condition container.
RuleExpressionTest class tests/src/Unit/RuleExpressionTest.php @coversDefaultClass \Drupal\rules\Plugin\RulesExpression\RuleExpression
@group Rules
RuleExpressionTest.php file tests/src/Unit/RuleExpressionTest.php
RuleExpressionTest::$actions property tests/src/Unit/RuleExpressionTest.php The primary action container of the rule.
RuleExpressionTest::$conditions property tests/src/Unit/RuleExpressionTest.php The primary condition container of the rule.
RuleExpressionTest::$expressionManager property tests/src/Unit/RuleExpressionTest.php The rules expression plugin manager.
RuleExpressionTest::$rule property tests/src/Unit/RuleExpressionTest.php The rule being tested.
RuleExpressionTest::setUp function tests/src/Unit/RuleExpressionTest.php
RuleExpressionTest::testActionExecution function tests/src/Unit/RuleExpressionTest.php Tests that an action fires if a condition passes.
RuleExpressionTest::testConditionFails function tests/src/Unit/RuleExpressionTest.php Tests that an action does not fire if a condition fails.
RuleExpressionTest::testContainersOnConstruct function tests/src/Unit/RuleExpressionTest.php Tests that a rule is constructed with condition and action containers.
RuleExpressionTest::testDeletingExpressions function tests/src/Unit/RuleExpressionTest.php Tests that removing expressions by indices works.
RuleExpressionTest::testLookupExpression function tests/src/Unit/RuleExpressionTest.php Tests that a nested expression can be retrieved by UUID.