function ActionExpressionContainer::getExpression
Overrides ExpressionContainerInterface::getExpression
1 call to ActionExpressionContainer::getExpression()
- ActionExpressionContainer::addExpressionObject in src/
Engine/ ActionExpressionContainer.php - Adds an expression object.
File
-
src/
Engine/ ActionExpressionContainer.php, line 111
Class
- ActionExpressionContainer
- Container for actions.
Namespace
Drupal\rules\EngineCode
public function getExpression($uuid) {
foreach ($this->actions as $action) {
if ($action->getUuid() === $uuid) {
return $action;
}
if ($action instanceof ExpressionContainerInterface) {
$nested_action = $action->getExpression($uuid);
if ($nested_action) {
return $nested_action;
}
}
}
return FALSE;
}