Evaluate the array and return an evaluated array

@param RenderingContextInterface $renderingContext
@return array An associative array with literal values
350127
public function evaluate(RenderingContextInterface $renderingContext)
    {
        $arrayToBuild = array();
        foreach ($this->internalArray as $key => $value) {
            if ($value instanceof AbstractNode) {
                $arrayToBuild[$key] = $value->evaluate($renderingContext);
            } else {
                // TODO - this case should not happen!
                $arrayToBuild[$key] = $value;
            }
        }
        return $arrayToBuild;
    }
222204
public function getContext(TemplateContextInterface $context = null)
    {
        $context = new TemplateContext($context);
        $context->setData($this->getData());
        $context->setParameters($this->getParameters());

        return $context;
    }
26606
public function getContext(ViewContextInterface $context = null)
    {
        $context = new ViewContext($context);
        $context->setEntity($this->getModel()->fetch());
        $context->setData($this->getData());
        $context->setParameters($this->getParameters());

        return $context;
    }
779106
protected function render(Context $context)
    {
        $this->logger->debug('kernel.process.render: render Response');

        // resolve output format
        if($context->response->raw) {

            // template
            if($template = $context->logic->html) {

                // render template
                $vars = $context->response->content;
                $vars = is_array($vars) ? $vars : (array)$vars;
                $content = $this->templater->render($template, $vars);

                // set html response
                $context->response = new Response\Html($content, $context->response->code, $context->response->headers);
                $this->logger->debug('kernel.process.render: template "' . $template . '" compiled');
            }
            // json
            elseif($context->logic->render = 'json') {
                $context->response = new Response\Json($context->response->content, $context->response->code, $context->response->headers);
                $this->logger->debug('kernel.process.render: json response generated');
            }

            // remove auto-generated flag
            $context->response->raw = false;
        }
        // render template
        elseif($context->response instanceof Response\Template) {
            $context->response->content = $this->templater->render($context->response->template, $context->response->vars);
        }
        // render redirect
        elseif($context->response instanceof Response\Redirect and $context->response->uri[0] == '/') {
            $context->response->uri = $context->request->uri->make($context->response->uri);
        }

        return $context;
    }
574314
protected function _actionRender(ViewContext $context)
    {
        $data = ObjectConfig::unbox($context->data);
        $path = $this->qualifyLayout($context->layout);

        //Render the template
        $content = $this->getTemplate()
            ->setParameters($context->parameters)
            ->render($path, $data);

        return $content;
    }
653408
public function render(array $context = [])
    {
        $this->context()->addContext($context);
        $context = $this->context()->get();

        return $this->twig->render($context);
    }
843150
protected function render(Context $context)
    {
        $this->logger->debug('kernel.render: render Response');

        // resolve output format
        if($context->response->raw) {

            // json
            if($context->logic->render = 'json') {
                $context->response = new Response\Json($context->response->content, $context->response->code, $context->response->headers);
                $this->logger->debug('kernel.render: json response generated');
            }

            // remove auto-generated flag
            $context->response->raw = false;
        }

        return $context;
    }
108130
public static function renderStatic(
        array $arguments,
        \Closure $renderChildrenClosure,
        RenderingContextInterface $renderingContext
    ) {
        $name = $arguments['name'];
        $pageRenderer = self::getPageRenderer();
        
        $fileNameFromArguments = $arguments['file'];
        if ($fileNameFromArguments) {
            $scriptPath = GeneralUtility::makeInstance(FilePathSanitizer::class)->sanitize($fileNameFromArguments);
            $pageRenderer->addJsFooterLibrary($name, $scriptPath);
        }
        else {
            $content = $renderChildrenClosure();
            $pageRenderer->addJsFooterInlineCode($name, $content);
        }

        return '';
    }
1023077
protected function startRendering($type, ParsedTemplateInterface $parsedTemplate, RenderingContextInterface $renderingContext)
    {
        array_push($this->renderingStack, array('type' => $type, 'parsedTemplate' => $parsedTemplate, 'renderingContext' => $renderingContext));
    }
321484
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
    {
        preg_match_all(
            '!([A-Z][A-Z0-9]*(?=$|[A-Z][a-z0-9])|[A-Za-z][a-z0-9]+)!',
            $renderChildrenClosure(),
            $matches
        );
        $ret = $matches[0];
        foreach ($ret as &$match) {
            $match = $match === strtoupper($match) ? strtolower($match) : lcfirst($match);
        }
        return implode('-', $ret);
    }
36728
public String render(String content, RenderContext context) {
    init();
    FilterContext filterContext = new BaseFilterContext();
    filterContext.setRenderContext(context);
    return fp.filter(content, filterContext);
  }
893819
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext): string {
    $input     = $arguments['input'];
    $separator = $arguments['separator'];
    $output    = '';

    if ($input) {
      $output = self::createSlug($input, $separator);
    }

    return $output;
  }
102851
public static function renderStatic(
        array $arguments,
        \Closure $renderChildrenClosure,
        RenderingContextInterface $renderingContext
    ) {
        $fileNameFromArguments = $arguments['file'];
        if ($fileNameFromArguments) {
            $CSSFileName = GeneralUtility::makeInstance(FilePathSanitizer::class)->sanitize($fileNameFromArguments);
            $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
            $pageRenderer->addCSSFile($CSSFileName);
        }
    }
1169126
public static function evaluate(
        ContextInterface $context,
        array $optimizedTargets,
        array $encPoliciesOrSets,
        ?LoggerInterface $logger
    ): array {
        return self::evaluateDenyUnlessPermit($context, $optimizedTargets, $encPoliciesOrSets, $logger);
    }
1343051
public function inject(SpanContext $context, $container)
    {
        $header = $this->key();
        $value = $this->formatter->serialize($context);
        if (!headers_sent()) {
            header("$header: $value");
        }
        return [
            $header => $value
        ];
    }
614504
public static function renderStatic(
        array $arguments,
        \Closure $renderChildrenClosure,
        RenderingContextInterface $renderingContext
    ) {
        if (0 === $arguments['resultsPerPage']) {
            $arguments['resultsPerPage'] = self::DEFAULT_RESULTS_PER_PAGE;
        }

        $pageNumber = (int) ceil($arguments['resultNumber'] / $arguments['resultsPerPage']);

        return $pageNumber;
    }
786091
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
    {
        $value = $arguments['value'];

        if ($value === null) {
            $value = $renderChildrenClosure();
        }
        if (!is_string($value) && !(is_object($value) && method_exists($value, '__toString'))) {
            throw new ViewHelper\Exception(sprintf('This ViewHelper works with values that are of type string or objects that implement a __toString method. You provided "%s"', is_object($value) ? get_class($value) : gettype($value)), 1359389241);
        }

        return rawurlencode($value);
    }