interface RuleExpressionInterface in Rules 8.3
Defines a rule.
Hierarchy
- interface \Drupal\rules\Engine\ExpressionContainerInterface extends \Drupal\rules\Engine\IteratorAggregate; interface \Drupal\rules\Engine\ActionExpressionInterface
- interface \Drupal\rules\Engine\RuleExpressionInterface
Expanded class hierarchy of RuleExpressionInterface
All classes that implement RuleExpressionInterface
2 files declare their use of RuleExpressionInterface
- RuleExpression.php in src/
Plugin/ RulesExpression/ RuleExpression.php - RuleExpressionForm.php in src/
Form/ Expression/ RuleExpressionForm.php
File
- src/
Engine/ RuleExpressionInterface.php, line 10
Namespace
Drupal\rules\EngineView source
interface RuleExpressionInterface extends ExpressionContainerInterface, ActionExpressionInterface {
/**
* Creates a condition expression and adds it to the container.
*
* @param string $condition_id
* The condition plugin id.
* @param \Drupal\rules\Context\ContextConfig $config
* (optional) The configuration for the specified plugin.
*
* @return \Drupal\rules\Core\RulesConditionInterface
* The created condition.
*/
public function addCondition($condition_id, ContextConfig $config = NULL);
/**
* Returns the conditions container of this rule.
*
* @return \Drupal\rules\Engine\ConditionExpressionContainerInterface
* The condition container of this rule.
*/
public function getConditions();
/**
* Sets the condition container.
*
* @param \Drupal\rules\Engine\ConditionExpressionContainerInterface $conditions
* The condition container to set.
*
* @return $this
*/
public function setConditions(ConditionExpressionContainerInterface $conditions);
/**
* Creates an action expression and adds it to the container.
*
* @param string $action_id
* The action plugin id.
* @param \Drupal\rules\Context\ContextConfig $config
* (optional) The configuration for the specified plugin.
*
* @return $this
*/
public function addAction($action_id, ContextConfig $config = NULL);
/**
* Returns the actions of this rule.
*
* @return \Drupal\rules\Engine\ActionExpressionContainerInterface
* The action container of this rule.
*/
public function getActions();
/**
* Sets the action container.
*
* @param \Drupal\rules\Engine\ActionExpressionContainerInterface $actions
* The action container to set.
*
* @return $this
*/
public function setActions(ActionExpressionContainerInterface $actions);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
ExecutableInterface:: |
public | function | Executes the plugin. | 20 |
ExpressionContainerInterface:: |
public | function | Creates and adds an expression. | 2 |
ExpressionContainerInterface:: |
public | function | Adds an expression object. | 3 |
ExpressionContainerInterface:: |
public | function | Deletes an expression identified by the specified UUID in the container. | 3 |
ExpressionContainerInterface:: |
public | function | Looks up the expression by UUID in this container. | 3 |
ExpressionInterface:: |
public | function | Verifies that this expression is configured correctly. | 4 |
ExpressionInterface:: |
public | function | Execute the expression with a given Rules state. | 6 |
ExpressionInterface:: |
public | function | Returns the form handling class for this expression. | 1 |
ExpressionInterface:: |
public | function | The label of this expression element that can be shown in the UI. | 1 |
ExpressionInterface:: |
public | function | Returns the root expression if this expression is nested. | 1 |
ExpressionInterface:: |
public | function | Returns the UUID of this expression if it is nested in another expression. | 1 |
ExpressionInterface:: |
public | function | Returns the list order of this expression. | 1 |
ExpressionInterface:: |
public | function | Prepares the execution metadata state by adding metadata to it. | 4 |
ExpressionInterface:: |
public | function | Set the root expression for this expression if it is nested. | 1 |
ExpressionInterface:: |
public | function | Sets the UUID of this expression in an expression tree. | 1 |
ExpressionInterface:: |
public | function | Sets the list order of this expression in an expression tree. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
RuleExpressionInterface:: |
public | function | Creates an action expression and adds it to the container. | 1 |
RuleExpressionInterface:: |
public | function | Creates a condition expression and adds it to the container. | 1 |
RuleExpressionInterface:: |
public | function | Returns the actions of this rule. | 1 |
RuleExpressionInterface:: |
public | function | Returns the conditions container of this rule. | 1 |
RuleExpressionInterface:: |
public | function | Sets the action container. | 1 |
RuleExpressionInterface:: |
public | function | Sets the condition container. | 1 |