public function autoCompleteAction(Request $request)
    {
        $this->denyAccessUnlessGranted('ez:tags:read');

        $subTreeLimit = (int) $request->query->get('subTreeLimit');
        $hideRootTag = (bool) $request->query->get('hideRootTag');

        $searchResult = $this->tagsService->searchTags(
            $request->query->get('searchString'),
            $request->query->get('locale')
        );

        $data = $data = $this->filterTags($searchResult->tags, $subTreeLimit, $hideRootTag);

        return new JsonResponse($data);
    }
public function autoCompleteAction(Request $request)
    {
        $this->denyAccessUnlessGranted('ez:tags:read');

        $subTreeLimit = (int) $request->query->get('subTreeLimit');
        $hideRootTag = (bool) $request->query->get('hideRootTag');

        $searchResult = $this->tagsService->searchTags(
            $request->query->get('searchString'),
            $request->query->get('locale')
        );

        $data = $data = $this->filterTags($searchResult->tags, $subTreeLimit, $hideRootTag);

        return new JsonResponse($data);
    }
public function autoCompleteAction ( Request $ request ) { $ this -> denyAccessUnlessGranted ( 'ez:tags:read' ) ; $ subTreeLimit = ( int ) $ request -> query -> get ( 'subTreeLimit' ) ; $ hideRootTag = ( bool ) $ request -> query -> get ( 'hideRootTag' ) ; $ searchResult = $ this -> tagsService -> searchTags ( $ request -> query -> get ( 'searchString' ) , $ request -> query -> get ( 'locale' ) ) ; $ data = $ data = $ this -> filterTags ( $ searchResult -> tags , $ subTreeLimit , $ hideRootTag ) ; return new JsonResponse ( $ data ) ; }
Provides autocomplete data for tag field edit interface.

@param \Symfony\Component\HttpFoundation\Request $request

@return \Symfony\Component\HttpFoundation\JsonResponse
Provides autocomplete data for tag field edit interface .