interface ConditionExpressionInterface
Defines the interface for Rules expressions that can be used as conditions.
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Executable\ExecutableInterface
- interface \Drupal\rules\Engine\ExpressionInterface extends \Drupal\Core\Executable\ExecutableInterface \Drupal\Component\Plugin\ConfigurableInterface \Drupal\Component\Plugin\DependentPluginInterface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\rules\Engine\ConditionExpressionInterface extends \Drupal\rules\Engine\ExpressionInterface
- interface \Drupal\rules\Engine\ExpressionInterface extends \Drupal\Core\Executable\ExecutableInterface \Drupal\Component\Plugin\ConfigurableInterface \Drupal\Component\Plugin\DependentPluginInterface \Drupal\Component\Plugin\PluginInspectionInterface
Expanded class hierarchy of ConditionExpressionInterface
All classes that implement ConditionExpressionInterface
7 files declare their use of ConditionExpressionInterface
- AndExpressionTest.php in tests/
src/ Unit/ AndExpressionTest.php - ConditionExpression.php in src/
Plugin/ RulesExpression/ ConditionExpression.php - ConditionForm.php in src/
Form/ Expression/ ConditionForm.php - OrExpressionTest.php in tests/
src/ Unit/ OrExpressionTest.php - RuleExpression.php in src/
Plugin/ RulesExpression/ RuleExpression.php
File
-
src/
Engine/ ConditionExpressionInterface.php, line 8
Namespace
Drupal\rules\EngineView source
interface ConditionExpressionInterface extends ExpressionInterface {
/**
* Negates the result after evaluating this condition.
*
* @param bool $negate
* TRUE to indicate that the condition should be negated, FALSE otherwise.
*
* @return $this
*/
public function negate($negate = TRUE);
/**
* Determines whether condition result will be negated.
*
* @return bool
* Whether the condition result will be negated.
*/
public function isNegated();
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ConditionExpressionInterface::isNegated | public | function | Determines whether condition result will be negated. | 2 |
ConditionExpressionInterface::negate | public | function | Negates the result after evaluating this condition. | 2 |
ConfigurableInterface::defaultConfiguration | public | function | Gets default configuration for this plugin. | 14 |
ConfigurableInterface::getConfiguration | public | function | Gets this plugin's configuration. | 15 |
ConfigurableInterface::setConfiguration | public | function | Sets the configuration for this plugin instance. | 15 |
DependentPluginInterface::calculateDependencies | public | function | Calculates dependencies for the configured plugin. | 20 |
ExecutableInterface::execute | public | function | Executes the plugin. | 21 |
ExpressionInterface::checkIntegrity | public | function | Verifies that this expression is configured correctly. | 4 |
ExpressionInterface::executeWithState | public | function | Execute the expression with a given Rules state. | 6 |
ExpressionInterface::getFormHandler | public | function | Returns the form handling class for this expression. | 1 |
ExpressionInterface::getLabel | public | function | The label of this expression element that can be shown in the UI. | 1 |
ExpressionInterface::getRoot | public | function | Returns the root expression if this expression is nested. | 1 |
ExpressionInterface::getUuid | public | function | Returns the UUID of this expression if it is nested in another expression. | 1 |
ExpressionInterface::getWeight | public | function | Returns the list order of this expression. | 1 |
ExpressionInterface::prepareExecutionMetadataState | public | function | Prepares the execution metadata state by adding metadata to it. | 4 |
ExpressionInterface::setRoot | public | function | Set the root expression for this expression if it is nested. | 1 |
ExpressionInterface::setUuid | public | function | Sets the UUID of this expression in an expression tree. | 1 |
ExpressionInterface::setWeight | public | function | Sets the list order of this expression in an expression tree. | 1 |
PluginInspectionInterface::getPluginDefinition | public | function | Gets the definition of the plugin implementation. | 6 |
PluginInspectionInterface::getPluginId | public | function | Gets the plugin_id of the plugin instance. | 2 |