module/Paragraph/src/Grid/Paragraph/Controller/ChangeLayoutController.php
protected function getLayoutId()
    {
        $paragraph = $this->findParagraph();

        if ( empty( $paragraph ) )
        {
            /* @var $structure \Core\Model\SubDomain\Structure */
            $structure = $this->getServiceLocator()
                              ->get( 'Grid\Core\Model\SubDomain\Model' )
                              ->findActual();

            return $structure->defaultLayoutId;
        }
        else
        {
            return $paragraph->layoutId;
        }
    }
protected function getLayoutId()
    {
        $paragraph = $this->findParagraph();

        if ( empty( $paragraph ) )
        {
            /* @var $structure \Core\Model\SubDomain\Structure */
            $structure = $this->getServiceLocator()
                              ->get( 'Grid\Core\Model\SubDomain\Model' )
                              ->findActual();

            return $structure->defaultLayoutId;
        }
        else
        {
            return $paragraph->layoutId;
        }
    }
protected function getLayoutId ( ) { $ paragraph = $ this -> findParagraph ( ) ; if ( empty ( $ paragraph ) ) { /* @var $structure \Core\Model\SubDomain\Structure */ $ structure = $ this -> getServiceLocator ( ) -> get ( 'Grid\Core\Model\SubDomain\Model' ) -> findActual ( ) ; return $ structure -> defaultLayoutId ; } else { return $ paragraph -> layoutId ; } }
Get actual layout ID

@return int
Get actual layout ID