8.5.x ConditionInterface.php ConditionInterface::evaluate()
8.0.x ConditionInterface.php ConditionInterface::evaluate()
8.1.x ConditionInterface.php ConditionInterface::evaluate()
8.2.x ConditionInterface.php ConditionInterface::evaluate()
8.3.x ConditionInterface.php ConditionInterface::evaluate()
8.4.x ConditionInterface.php ConditionInterface::evaluate()
8.6.x ConditionInterface.php ConditionInterface::evaluate()

Evaluates the condition and returns TRUE or FALSE accordingly.

Return value

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

10 methods override ConditionInterface::evaluate()
BaloneySpam::evaluate in core/modules/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php
Evaluates the condition and returns TRUE or FALSE accordingly.
ConditionTestDualUser::evaluate in core/modules/system/tests/modules/condition_test/src/Plugin/Condition/ConditionTestDualUser.php
Evaluates the condition and returns TRUE or FALSE accordingly.
ConditionTestNoExistingType::evaluate in core/modules/system/tests/modules/condition_test/src/Plugin/Condition/ConditionTestNoExistingType.php
Evaluates the condition and returns TRUE or FALSE accordingly.
CurrentThemeCondition::evaluate in core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
Evaluates the condition and returns TRUE or FALSE accordingly.
Language::evaluate in core/modules/language/src/Plugin/Condition/Language.php
Evaluates the condition and returns TRUE or FALSE accordingly.

... See full list

File

core/lib/Drupal/Core/Condition/ConditionInterface.php, line 61

Class

ConditionInterface
An interface for condition plugins.

Namespace

Drupal\Core\Condition

Code

public function evaluate();