Networking\InitCmsBundle\Controller\MenuItemAdminController::placementAction PHP Method

placementAction() public method

renders the template html for the modal
public placementAction ( ) : boolean | string | Response
return boolean | string | Symfony\Component\HttpFoundation\Response
    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;
        }
    }