src/Controller/MenuItemAdminController.php
public function placementAction()
    {
        /** @var \Networking\InitCmsBundle\Entity\MenuItem $rootNode */
        $rootNode = $this->admin->getObject($this->get('session')->get('root_menu_id'));

        if (!$rootNode) {
            throw new NotFoundHttpException();
        }

        if ($rootNode->getChildren()->count() > 1) {
            return $this->listAction(null, null, 'placement', $this->get('session')->get('root_menu_id'));
        } else {
            return false;
        }
    }
public function placementAction()
    {
        /** @var \Networking\InitCmsBundle\Entity\MenuItem $rootNode */
        $rootNode = $this->admin->getObject($this->get('session')->get('root_menu_id'));

        if (!$rootNode) {
            throw new NotFoundHttpException();
        }

        if ($rootNode->getChildren()->count() > 1) {
            return $this->listAction(null, null, 'placement', $this->get('session')->get('root_menu_id'));
        } else {
            return false;
        }
    }
public function placementAction ( ) { /** @var \Networking\InitCmsBundle\Entity\MenuItem $rootNode */ $ rootNode = $ this -> admin -> getObject ( $ this -> get ( 'session' ) -> get ( 'root_menu_id' ) ) ; if ( ! $ rootNode ) { throw new NotFoundHttpException ( ) ; } if ( $ rootNode -> getChildren ( ) -> count ( ) > 1 ) { return $ this -> listAction ( null , null , 'placement' , $ this -> get ( 'session' ) -> get ( 'root_menu_id' ) ) ; } else { return false ; } }
renders the template html for the modal.

@return bool|string|Response

@throws \Sonata\AdminBundle\Exception\NoValueException
renders the template html for the modal .