private function getLayoutName()
    {
        if ($this->layout != null) {
            return $this->layout;
        }

        try {
            return $this->template->exists("backend_layout") ? "backend_layout" : $this->theme . "::layout";
        } catch (\LogicException $ex) {
            return $this->theme . "::layout";
        }
    }
private function getLayoutName()
    {
        if ($this->layout != null) {
            return $this->layout;
        }

        try {
            return $this->template->exists("backend_layout") ? "backend_layout" : $this->theme . "::layout";
        } catch (\LogicException $ex) {
            return $this->theme . "::layout";
        }
    }
private function getLayoutName ( ) { if ( $ this -> layout != null ) { return $ this -> layout ; } try { return $ this -> template -> exists ( "backend_layout" ) ? "backend_layout" : $ this -> theme . "::layout" ; } catch ( \ LogicException $ ex ) { return $ this -> theme . "::layout" ; } }
Get Current Layout Name in Plates Template Engine style
If user have created a layout.php in the default folder, use their layout.php.
Or else use the default layout.

@return string Layout Name
Get Current Layout Name in Plates Template Engine style If user have created a layout . php in the default folder use their layout . php . Or else use the default layout .