lib/View/TemplateResolver.php
private function evaluateParameters(ViewInterface $view, array $parameters): Generator
    {
        foreach ($parameters as $key => $value) {
            if (is_string($value) && mb_strpos($value, '@=') === 0) {
                $expressionLanguage = new ExpressionLanguage();
                $value = $expressionLanguage->evaluate(
                    mb_substr($value, 2),
                    [
                        'view' => $view,
                    ] + $view->getParameters()
                );
            }

            yield $key => $value;
        }
    }
private function evaluateParameters(ViewInterface $view, array $parameters): Generator
    {
        foreach ($parameters as $key => $value) {
            if (is_string($value) && mb_strpos($value, '@=') === 0) {
                $expressionLanguage = new ExpressionLanguage();
                $value = $expressionLanguage->evaluate(
                    mb_substr($value, 2),
                    [
                        'view' => $view,
                    ] + $view->getParameters()
                );
            }

            yield $key => $value;
        }
    }
private function evaluateParameters ( ViewInterface $ view , array $ parameters ) : Generator { foreach ( $ parameters as $ key => $ value ) { if ( is_string ( $ value ) && mb_strpos ( $ value , '@=' ) === 0 ) { $ expressionLanguage = new ExpressionLanguage ( ) ; $ value = $ expressionLanguage -> evaluate ( mb_substr ( $ value , 2 ) , [ 'view' => $ view , ] + $ view -> getParameters ( ) ) ; } yield $ key => $ value ; } }
Iterates over all provided parameters and evaluates the values with expression
engine if the parameter value specifies so.
Iterates over all provided parameters and evaluates the values with expression engine if the parameter value specifies so .