function TestConditionProvider::evaluate

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;
}