Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConditionInterface.php

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.

... See full list

File

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

Class

ConditionInterface
An interface for condition plugins.

Namespace

Drupal\Core\Condition

Code

public function evaluate();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal