public function getAdminPanel(MvcEvent $event)
    {
        $matchRoute = $event->getRouteMatch();

        if (empty($matchRoute)) {
            return null;
        }

        /** @var \RcmAdmin\Controller\AdminPanelController $adminPanelController */
        $adminPanelController = $this->serviceLocator->get(
            \RcmAdmin\Controller\AdminPanelController::class
        );

        $adminPanelController->setEvent($event);

        $adminWrapper = $adminPanelController->getAdminWrapperAction();

        if (!$adminWrapper instanceof ViewModel) {
            return;
        }

        /** @var \Zend\View\Model\ViewModel $viewModel */
        $layout = $event->getViewModel();
        $layout->addChild($adminWrapper, 'rcmAdminPanel');
    }
public function getAdminPanel(MvcEvent $event)
    {
        $matchRoute = $event->getRouteMatch();

        if (empty($matchRoute)) {
            return null;
        }

        /** @var \RcmAdmin\Controller\AdminPanelController $adminPanelController */
        $adminPanelController = $this->serviceLocator->get(
            \RcmAdmin\Controller\AdminPanelController::class
        );

        $adminPanelController->setEvent($event);

        $adminWrapper = $adminPanelController->getAdminWrapperAction();

        if (!$adminWrapper instanceof ViewModel) {
            return;
        }

        /** @var \Zend\View\Model\ViewModel $viewModel */
        $layout = $event->getViewModel();
        $layout->addChild($adminWrapper, 'rcmAdminPanel');
    }
public function getAdminPanel ( MvcEvent $ event ) { $ matchRoute = $ event -> getRouteMatch ( ) ; if ( empty ( $ matchRoute ) ) { return null ; } /** @var \RcmAdmin\Controller\AdminPanelController $adminPanelController */ $ adminPanelController = $ this -> serviceLocator -> get ( \ RcmAdmin \ Controller \ AdminPanelController :: class ) ; $ adminPanelController -> setEvent ( $ event ) ; $ adminWrapper = $ adminPanelController -> getAdminWrapperAction ( ) ; if ( ! $ adminWrapper instanceof ViewModel ) { return ; } /** @var \Zend\View\Model\ViewModel $viewModel */ $ layout = $ event -> getViewModel ( ) ; $ layout -> addChild ( $ adminWrapper , 'rcmAdminPanel' ) ; }
Get Admin Panel

@param MvcEvent $event Zend MVC Event

@return void
Get Admin Panel