bundles/BlockManagerBundle/Templating/Twig/Runtime/RenderingRuntime.php
public function displayZone(Layout $layout, string $zoneIdentifier, string $viewContext, ContextualizedTwigTemplate $twigTemplate): void
    {
        $locales = null;

        $request = $this->requestStack->getCurrentRequest();
        if ($request instanceof Request) {
            $locales = $this->localeProvider->getRequestLocales($request);
        }

        $zone = $layout->getZone($zoneIdentifier);
        $linkedZone = $zone->getLinkedZone();

        $blocks = $this->blockService->loadZoneBlocks(
            $linkedZone instanceof Zone ? $linkedZone : $zone,
            $locales
        );

        echo $this->renderValue(
            [],
            new ZoneReference($layout, $zoneIdentifier),
            [
                'blocks' => $blocks,
                'twig_template' => $twigTemplate,
            ],
            $viewContext
        );
    }
public function displayZone(Layout $layout, string $zoneIdentifier, string $viewContext, ContextualizedTwigTemplate $twigTemplate): void
    {
        $locales = null;

        $request = $this->requestStack->getCurrentRequest();
        if ($request instanceof Request) {
            $locales = $this->localeProvider->getRequestLocales($request);
        }

        $zone = $layout->getZone($zoneIdentifier);
        $linkedZone = $zone->getLinkedZone();

        $blocks = $this->blockService->loadZoneBlocks(
            $linkedZone instanceof Zone ? $linkedZone : $zone,
            $locales
        );

        echo $this->renderValue(
            [],
            new ZoneReference($layout, $zoneIdentifier),
            [
                'blocks' => $blocks,
                'twig_template' => $twigTemplate,
            ],
            $viewContext
        );
    }
public function displayZone ( Layout $ layout , string $ zoneIdentifier , string $ viewContext , ContextualizedTwigTemplate $ twigTemplate ) : void { $ locales = null ; $ request = $ this -> requestStack -> getCurrentRequest ( ) ; if ( $ request instanceof Request ) { $ locales = $ this -> localeProvider -> getRequestLocales ( $ request ) ; } $ zone = $ layout -> getZone ( $ zoneIdentifier ) ; $ linkedZone = $ zone -> getLinkedZone ( ) ; $ blocks = $ this -> blockService -> loadZoneBlocks ( $ linkedZone instanceof Zone ? $ linkedZone : $ zone , $ locales ) ; echo $ this -> renderValue ( [ ] , new ZoneReference ( $ layout , $ zoneIdentifier ) , [ 'blocks' => $ blocks , 'twig_template' => $ twigTemplate , ] , $ viewContext ) ; }
Displays the provided zone.
Displays the provided zone .