function TestTextCondition::evaluate
Overrides RulesConditionBase::evaluate
File
-
tests/
modules/ rules_test/ src/ Plugin/ Condition/ TestTextCondition.php, line 27
Class
- TestTextCondition
- Returns TRUE if the 'text' context parameter equals 'test value'.
Namespace
Drupal\rules_test\Plugin\ConditionCode
public function evaluate() {
$text = $this->getContextValue('text');
return $text == 'test value';
}