You are here

public function ConditionInterface::evaluate in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Condition/ConditionInterface.php \Drupal\Core\Condition\ConditionInterface::evaluate()
  2. 9 core/lib/Drupal/Core/Condition/ConditionInterface.php \Drupal\Core\Condition\ConditionInterface::evaluate()

Evaluates the condition and returns TRUE or FALSE accordingly.

Return value

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

5 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.
MissingSchema::evaluate in core/modules/block/tests/modules/block_test/src/Plugin/Condition/MissingSchema.php
Evaluates the condition and returns TRUE or FALSE accordingly.
OptionalContextCondition::evaluate in core/modules/system/tests/modules/condition_test/src/Plugin/Condition/OptionalContextCondition.php
Evaluates the condition and returns TRUE or FALSE accordingly.

File

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

Class

ConditionInterface
An interface for condition plugins.

Namespace

Drupal\Core\Condition

Code

public function evaluate();