You are here

RulesConditionInterface.php in Rules 8.3

Namespace

Drupal\rules\Core

File

src/Core/RulesConditionInterface.php
View source
<?php

namespace Drupal\rules\Core;

use Drupal\rules\Context\ContextAwarePluginInterface;
use Drupal\Core\Condition\ConditionInterface;
use Drupal\rules\Context\ContextProviderInterface;

/**
 * Extends the core ConditionInterface to provide a negate() method.
 */
interface RulesConditionInterface extends ConditionInterface, ContextAwarePluginInterface, ContextProviderInterface, ConfigurationAccessControlInterface {

  /**
   * 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);

}

Interfaces

Namesort descending Description
RulesConditionInterface Extends the core ConditionInterface to provide a negate() method.