function RuleExpression::getExpression
Looks up the expression by UUID in this container.
Parameters
string $uuid: The UUID of the expression.
Return value
\Drupal\rules\Engine\ExpressionInterface|false The expression object or FALSE if not expression object with that UUID could be found.
Overrides ExpressionContainerInterface::getExpression
File
-
src/
Plugin/ RulesExpression/ RuleExpression.php, line 221
Class
- RuleExpression
- Provides a rule, executing actions when conditions are met.
Namespace
Drupal\rules\Plugin\RulesExpressionCode
public function getExpression($uuid) {
$condition = $this->conditions
->getExpression($uuid);
if ($condition) {
return $condition;
}
return $this->actions
->getExpression($uuid);
}