public function EntityTestCondition::evaluate in Page Manager 8.4
Same name and namespace in other branches
- 8 tests/modules/page_manager_routing_test/src/Plugin/Condition/EntityTestCondition.php \Drupal\page_manager_routing_test\Plugin\Condition\EntityTestCondition::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
- tests/
modules/ page_manager_routing_test/ src/ Plugin/ Condition/ EntityTestCondition.php, line 23
Class
- EntityTestCondition
- @todo.
Namespace
Drupal\page_manager_routing_test\Plugin\ConditionCode
public function evaluate() {
return (bool) $this
->getContext('entity_test');
}