You are here

ConditionExpressionInterface.php in Rules 8.3

File

src/Engine/ConditionExpressionInterface.php
View source
<?php

namespace Drupal\rules\Engine;


/**
 * Defines the interface for Rules expressions that can be used as conditions.
 */
interface ConditionExpressionInterface extends ExpressionInterface {

  /**
   * Negates the result after evaluating this condition.
   *
   * @param bool $negate
   *   TRUE to indicate that the condition should be negated, FALSE otherwise.
   *
   * @return $this
   */
  public function negate($negate = TRUE);

  /**
   * Determines whether condition result will be negated.
   *
   * @return bool
   *   Whether the condition result will be negated.
   */
  public function isNegated();

}

Interfaces

Namesort descending Description
ConditionExpressionInterface Defines the interface for Rules expressions that can be used as conditions.