bundles/BlockManagerBundle/Templating/Twig/GlobalVariable.php
public function getLayout(): ?Layout
    {
        $layoutView = $this->getLayoutView();
        if (!$layoutView instanceof LayoutViewInterface) {
            return null;
        }

        return $layoutView->getLayout();
    }
public function getLayout(): ?Layout
    {
        $layoutView = $this->getLayoutView();
        if (!$layoutView instanceof LayoutViewInterface) {
            return null;
        }

        return $layoutView->getLayout();
    }
public function getLayout ( ) : ? Layout { $ layoutView = $ this -> getLayoutView ( ) ; if ( ! $ layoutView instanceof LayoutViewInterface ) { return null ; } return $ layoutView -> getLayout ( ) ; }
Returns the currently resolved layout or null if no layout was resolved.
Returns the currently resolved layout or null if no layout was resolved .