bundles/BlockManagerBundle/Templating/Twig/Node/RenderZone.php
private function compileContextNode(Compiler $compiler): void
    {
        $contextNode = null;
        if ($this->hasNode('context')) {
            $contextNode = $this->getNode('context');
        }

        if ($contextNode instanceof Node) {
            $compiler
                ->write('$ngbmContext = ')
                    ->subcompile($this->getNode('context'))
                ->write(';' . PHP_EOL);

            return;
        }

        $compiler->write('$ngbmContext = ' . ViewInterface::class . '::CONTEXT_DEFAULT;' . PHP_EOL);
    }
private function compileContextNode(Compiler $compiler): void
    {
        $contextNode = null;
        if ($this->hasNode('context')) {
            $contextNode = $this->getNode('context');
        }

        if ($contextNode instanceof Node) {
            $compiler
                ->write('$ngbmContext = ')
                    ->subcompile($this->getNode('context'))
                ->write(';' . PHP_EOL);

            return;
        }

        $compiler->write('$ngbmContext = ' . ViewInterface::class . '::CONTEXT_DEFAULT;' . PHP_EOL);
    }
private function compileContextNode ( Compiler $ compiler ) : void { $ contextNode = null ; if ( $ this -> hasNode ( 'context' ) ) { $ contextNode = $ this -> getNode ( 'context' ) ; } if ( $ contextNode instanceof Node ) { $ compiler -> write ( '$ngbmContext = ' ) -> subcompile ( $ this -> getNode ( 'context' ) ) -> write ( ';' . PHP_EOL ) ; return ; } $ compiler -> write ( '$ngbmContext = ' . ViewInterface :: class . '::CONTEXT_DEFAULT;' . PHP_EOL ) ; }
Compiles the context node.
Compiles the context node .