src/Zicht/Bundle/AdminBundle/Controller/QuicklistController.php
public function quicklistAction(Request $request)
    {
        $quicklist = $this->get('zicht_admin.quicklist');
        if ($request->get('repo') && $request->get('pattern')) {
            if ($request->get('language')) {
                $language = $request->get('language');
            } else {
                $language = null;
            }
            return new JsonResponse($quicklist->getResults($request->get('repo'), $request->get('pattern'), $language));
        }

        return array(
            'repos' => $quicklist->getRepositoryConfigs()
        );
    }
public function quicklistAction(Request $request)
    {
        $quicklist = $this->get('zicht_admin.quicklist');
        if ($request->get('repo') && $request->get('pattern')) {
            if ($request->get('language')) {
                $language = $request->get('language');
            } else {
                $language = null;
            }
            return new JsonResponse($quicklist->getResults($request->get('repo'), $request->get('pattern'), $language));
        }

        return array(
            'repos' => $quicklist->getRepositoryConfigs()
        );
    }
public function quicklistAction ( Request $ request ) { $ quicklist = $ this -> get ( 'zicht_admin.quicklist' ) ; if ( $ request -> get ( 'repo' ) && $ request -> get ( 'pattern' ) ) { if ( $ request -> get ( 'language' ) ) { $ language = $ request -> get ( 'language' ) ; } else { $ language = null ; } return new JsonResponse ( $ quicklist -> getResults ( $ request -> get ( 'repo' ) , $ request -> get ( 'pattern' ) , $ language ) ) ; } return array ( 'repos' => $ quicklist -> getRepositoryConfigs ( ) ) ; }
Displays a quick list control for jumping to entries registered in the quick list service

@param Request $request
@return array|JsonResponse

@Template("@ZichtAdmin/Quicklist/quicklist.html.twig")
@Route("quick-list")
Displays a quick list control for jumping to entries registered in the quick list service