function ConditionExpression::negate

Negates the result after evaluating this condition.

Parameters

bool $negate: TRUE to indicate that the condition should be negated, FALSE otherwise.

Return value

$this

Overrides ConditionExpressionInterface::negate

File

src/Plugin/RulesExpression/ConditionExpression.php, line 142

Class

ConditionExpression
Defines an executable condition expression.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function negate($negate = TRUE) {
    $this->configuration['negate'] = $negate;
    return $this;
}