You are here

public function RulesConditionBase::negate in Rules 8.3

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 RulesConditionInterface::negate

File

src/Core/RulesConditionBase.php, line 55

Class

RulesConditionBase
Base class for rules conditions.

Namespace

Drupal\rules\Core

Code

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