function RuleExpression::deleteExpression

Overrides ExpressionContainerInterface::deleteExpression

File

src/Plugin/RulesExpression/RuleExpression.php, line 232

Class

RuleExpression
Provides a rule, executing actions when conditions are met.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function deleteExpression($uuid) {
    $deleted = $this->conditions
        ->deleteExpression($uuid);
    if (!$deleted) {
        $deleted = $this->actions
            ->deleteExpression($uuid);
    }
    return $deleted;
}