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

        return $layoutView->getParameter('rule');
    }
public function getRule(): ?Rule
    {
        $layoutView = $this->getLayoutView();
        if (!$layoutView instanceof LayoutViewInterface) {
            return null;
        }

        return $layoutView->getParameter('rule');
    }
public function getRule ( ) : ? Rule { $ layoutView = $ this -> getLayoutView ( ) ; if ( ! $ layoutView instanceof LayoutViewInterface ) { return null ; } return $ layoutView -> getParameter ( 'rule' ) ; }
Returns the rule used to resolve the current layout or null if no layout was resolved.
Returns the rule used to resolve the current layout or null if no layout was resolved .