You are here

public function RuleInterface::evaluateConditions in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/RuleInterface.php \Drupal\rng\Entity\RuleInterface::evaluateConditions()

Evaluates all conditions on the rule.

Parameters

array $context_values: Context to pass to conditions. Keyed by context name.

Return value

bool Whether all conditions evaluate true.

Throws

\Drupal\Component\Plugin\Exception\ContextException If a context value is missing for any condition.

1 method overrides RuleInterface::evaluateConditions()
Rule::evaluateConditions in src/Entity/Rule.php
Evaluates all conditions on the rule.

File

src/Entity/RuleInterface.php, line 88

Class

RuleInterface
Provides an interface for event rule entities.

Namespace

Drupal\rng\Entity

Code

public function evaluateConditions($context_values = []);