public canEvaluate ( $context ) : boolean | ||
return | boolean | TRUE if the operation can be applied onto the $context, FALSE otherwise |
public function canEvaluate($context)
{
return count($context) === 0 || isset($context[0]) && $context[0] instanceof NodeInterface;
}