public function ConditionInterface::evaluate

Evaluates the condition and returns TRUE or FALSE accordingly.

Return value

bool TRUE if the condition has been met, FALSE otherwise.

3 methods override ConditionInterface::evaluate()
Language::evaluate in drupal/core/modules/language/lib/Drupal/language/Plugin/Condition/Language.php
Evaluates the condition and returns TRUE or FALSE accordingly.
NodeType::evaluate in drupal/core/modules/node/lib/Drupal/node/Plugin/Condition/NodeType.php
Implements \Drupal\condition\ConditionInterface::evaluate().
Php::evaluate in drupal/core/modules/php/lib/Drupal/php/Plugin/Condition/Php.php
Evaluates the condition and returns TRUE or FALSE accordingly.

File

drupal/core/lib/Drupal/Core/Condition/ConditionInterface.php, line 48
Contains \Drupal\Core\Condition\ConditionInterface.

Class

ConditionInterface
An interface for condition plugins.

Namespace

Drupal\Core\Condition

Code

public function evaluate();