You are here

public function TestConditionProvider::evaluate in Rules 8.3

Evaluates the condition and returns TRUE or FALSE accordingly.

Return value

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

Overrides RulesConditionBase::evaluate

File

tests/modules/rules_test/src/Plugin/Condition/TestConditionProvider.php, line 26

Class

TestConditionProvider
Test condition that adds a variable with the provided context.

Namespace

Drupal\rules_test\Plugin\Condition

Code

public function evaluate() {
  $this
    ->setProvidedValue('provided_text', 'test value');
  return TRUE;
}