function ConditionInterface::evaluate
Same name in other branches
- 9 core/lib/Drupal/Core/Condition/ConditionInterface.php \Drupal\Core\Condition\ConditionInterface::evaluate()
- 8.9.x core/lib/Drupal/Core/Condition/ConditionInterface.php \Drupal\Core\Condition\ConditionInterface::evaluate()
- 11.x 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.
11 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.
- EntityBundle::evaluate in core/
lib/ Drupal/ Core/ Entity/ Plugin/ Condition/ EntityBundle.php - Evaluates the condition and returns TRUE or FALSE accordingly.
File
-
core/
lib/ Drupal/ Core/ Condition/ ConditionInterface.php, line 63
Class
- ConditionInterface
- An interface for condition plugins.
Namespace
Drupal\Core\ConditionCode
public function evaluate();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.