Networking\InitCmsBundle\Controller\MediaAdminController::refreshListAction PHP Method

refreshListAction() public method

public refreshListAction ( ) : Response
return Symfony\Component\HttpFoundation\Response
    public function refreshListAction()
    {
        if (false === $this->admin->isGranted('LIST')) {
            throw new AccessDeniedException();
        }
        /** @var Request $request */
        $request = $this->container->get('request_stack')->getCurrentRequest();
        $galleryListMode = $request->get('pcode') ? true : false;
        $datagrid = $this->admin->getDatagrid();
        $formView = $datagrid->getForm()->createView();
        $persistentParameters = $this->admin->getPersistentParameters();
        return $this->render('NetworkingInitCmsBundle:MediaAdmin:list_items.html.twig', array('providers' => $this->get('sonata.media.pool')->getProvidersByContext($request->get('context', $persistentParameters['context'])), 'action' => 'list', 'datagrid' => $datagrid, 'galleryListMode' => $galleryListMode, 'show_actions' => true));
    }