function ConditionInterface::evaluate
Evaluates the condition and returns TRUE or FALSE accordingly.
Return value
bool TRUE if the condition has been met, FALSE otherwise.
6 methods override ConditionInterface::evaluate()
- 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.
- Language::evaluate in core/
modules/ language/ src/ Plugin/ Condition/ Language.php - Evaluates the condition and returns TRUE or FALSE accordingly.
- RequestPath::evaluate in core/
modules/ system/ src/ Plugin/ Condition/ RequestPath.php - Evaluates the condition and returns TRUE or FALSE accordingly.
- ResponseStatus::evaluate in core/
modules/ system/ src/ Plugin/ Condition/ ResponseStatus.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();