module/Paragraph/src/Grid/Paragraph/Controller/Plugin/ParagraphLayout.php
public function setMiddleParagraphLayoutId( $layoutParagraphId = null )
    {
        $middleLayout = $this->middleLayoutModel
                             ->findMiddleParagraphLayoutById(
                                 $layoutParagraphId
                             );

        if ( ! empty( $middleLayout ) )
        {
            $controller = $this->getController();

            if ( ! method_exists( $controller, 'plugin' ) )
            {
                throw new Exception\LogicException(
                    'Controller used with paragraphLayout plugin must be pluggable'
                );
            }

            $controller->plugin( 'layout' )
                       ->setMiddleLayout( $middleLayout );
        }

        return $this;
    }
public function setMiddleParagraphLayoutId( $layoutParagraphId = null )
    {
        $middleLayout = $this->middleLayoutModel
                             ->findMiddleParagraphLayoutById(
                                 $layoutParagraphId
                             );

        if ( ! empty( $middleLayout ) )
        {
            $controller = $this->getController();

            if ( ! method_exists( $controller, 'plugin' ) )
            {
                throw new Exception\LogicException(
                    'Controller used with paragraphLayout plugin must be pluggable'
                );
            }

            $controller->plugin( 'layout' )
                       ->setMiddleLayout( $middleLayout );
        }

        return $this;
    }
public function setMiddleParagraphLayoutId ( $ layoutParagraphId = null ) { $ middleLayout = $ this -> middleLayoutModel -> findMiddleParagraphLayoutById ( $ layoutParagraphId ) ; if ( ! empty ( $ middleLayout ) ) { $ controller = $ this -> getController ( ) ; if ( ! method_exists ( $ controller , 'plugin' ) ) { throw new Exception \ LogicException ( 'Controller used with paragraphLayout plugin must be pluggable' ) ; } $ controller -> plugin ( 'layout' ) -> setMiddleLayout ( $ middleLayout ) ; } return $ this ; }
Set middle-layout for paragraph-layout

@param int|null $layoutParagraphId
@return \Paragraph\Controller\Plugin\ParagraphLayout
@throws \Zend\Mvc\Exception\LogicException if controller not pluggable
Set middle - layout for paragraph - layout