src/ScContent/Controller/Back/ContentManagerController.php
public function indexAction()
    {
        $optionsProvider = $this->getOptionsProvider();
        if ($this->getRequest()->isPost()) {
            $event = $this->request->getPost('suboperation');
            if (! empty($event)) {
                $events = $this->getEventManager();
                $params = $this->request->getPost();
                $result = $events->trigger($event, $this, $params);
                if ($result->last() instanceof Response) {
                    return $result->last();
                }
            }
        }
        $lists = $this->getContentListProvider();

        $view = new ViewModel([
            'optionsProvider' => $optionsProvider,
            'contentListsProvider' => $lists
        ]);

        $flashMessenger = $this->flashMessenger();
        if ($flashMessenger->hasMessages()) {
            $view->messages = $flashMessenger->getMessages();
        }

        return $view;
    }
public function indexAction()
    {
        $optionsProvider = $this->getOptionsProvider();
        if ($this->getRequest()->isPost()) {
            $event = $this->request->getPost('suboperation');
            if (! empty($event)) {
                $events = $this->getEventManager();
                $params = $this->request->getPost();
                $result = $events->trigger($event, $this, $params);
                if ($result->last() instanceof Response) {
                    return $result->last();
                }
            }
        }
        $lists = $this->getContentListProvider();

        $view = new ViewModel([
            'optionsProvider' => $optionsProvider,
            'contentListsProvider' => $lists
        ]);

        $flashMessenger = $this->flashMessenger();
        if ($flashMessenger->hasMessages()) {
            $view->messages = $flashMessenger->getMessages();
        }

        return $view;
    }
public function indexAction ( ) { $ optionsProvider = $ this -> getOptionsProvider ( ) ; if ( $ this -> getRequest ( ) -> isPost ( ) ) { $ event = $ this -> request -> getPost ( 'suboperation' ) ; if ( ! empty ( $ event ) ) { $ events = $ this -> getEventManager ( ) ; $ params = $ this -> request -> getPost ( ) ; $ result = $ events -> trigger ( $ event , $ this , $ params ) ; if ( $ result -> last ( ) instanceof Response ) { return $ result -> last ( ) ; } } } $ lists = $ this -> getContentListProvider ( ) ; $ view = new ViewModel ( [ 'optionsProvider' => $ optionsProvider , 'contentListsProvider' => $ lists ] ) ; $ flashMessenger = $ this -> flashMessenger ( ) ; if ( $ flashMessenger -> hasMessages ( ) ) { $ view -> messages = $ flashMessenger -> getMessages ( ) ; } return $ view ; }
Show content list.

@return \Zend\Stdlib\ResponseInterface|\Zend\View\Model\ViewModel
Show content list .