public function Php::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

drupal/core/modules/php/lib/Drupal/php/Plugin/Condition/Php.php, line 71
Contains \Drupal\php\Plugin\Condition\Php.

Class

Php
Provides a 'Php' condition.

Namespace

Drupal\php\Plugin\Condition

Code

public function evaluate() {
  return php_eval($this->configuration['php']);
}