function ConditionTestNoExistingType::evaluate

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/condition_test/src/Plugin/Condition/ConditionTestNoExistingType.php \Drupal\condition_test\Plugin\Condition\ConditionTestNoExistingType::evaluate()
  2. 10 core/modules/system/tests/modules/condition_test/src/Plugin/Condition/ConditionTestNoExistingType.php \Drupal\condition_test\Plugin\Condition\ConditionTestNoExistingType::evaluate()
  3. 11.x core/modules/system/tests/modules/condition_test/src/Plugin/Condition/ConditionTestNoExistingType.php \Drupal\condition_test\Plugin\Condition\ConditionTestNoExistingType::evaluate()

Evaluates the condition and returns TRUE or FALSE accordingly.

Return value

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

Overrides ConditionInterface::evaluate

File

core/modules/system/tests/modules/condition_test/src/Plugin/Condition/ConditionTestNoExistingType.php, line 23

Class

ConditionTestNoExistingType
Provides a condition that has a no existing context.

Namespace

Drupal\condition_test\Plugin\Condition

Code

public function evaluate() {
    return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.