public function Php::evaluate in PHP 8
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
- src/
Plugin/ Condition/ Php.php, line 66
Class
- Php
- Provides a 'Php' condition.
Namespace
Drupal\php\Plugin\ConditionCode
public function evaluate() {
return php_eval($this->configuration['php']);
}