You are here

public function BaloneySpam::evaluate in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php \Drupal\block_test\Plugin\Condition\BaloneySpam::evaluate()
  2. 9 core/modules/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php \Drupal\block_test\Plugin\Condition\BaloneySpam::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/block/tests/modules/block_test/src/Plugin/Condition/BaloneySpam.php, line 20

Class

BaloneySpam
Provides a 'baloney_spam' condition.

Namespace

Drupal\block_test\Plugin\Condition

Code

public function evaluate() {
  return TRUE;
}