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

        $subTreeLimit = (int) $request->query->get('subTreeLimit', 0);
        $hideRootTag = (bool) $request->query->get('hideRootTag', false);
        $locale = $request->query->get('locale');

        $tags = $this->tagsService->loadTagChildren(
            !empty($subTreeLimit) ? $this->tagsService->loadTag($subTreeLimit) : null,
            0,
            -1,
            [$locale]
        );

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

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

        $subTreeLimit = (int) $request->query->get('subTreeLimit', 0);
        $hideRootTag = (bool) $request->query->get('hideRootTag', false);
        $locale = $request->query->get('locale');

        $tags = $this->tagsService->loadTagChildren(
            !empty($subTreeLimit) ? $this->tagsService->loadTag($subTreeLimit) : null,
            0,
            -1,
            [$locale]
        );

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

        return new JsonResponse($data);
    }
public function childrenAction ( Request $ request ) { $ this -> denyAccessUnlessGranted ( 'ez:tags:read' ) ; $ subTreeLimit = ( int ) $ request -> query -> get ( 'subTreeLimit' , 0 ) ; $ hideRootTag = ( bool ) $ request -> query -> get ( 'hideRootTag' , false ) ; $ locale = $ request -> query -> get ( 'locale' ) ; $ tags = $ this -> tagsService -> loadTagChildren ( ! empty ( $ subTreeLimit ) ? $ this -> tagsService -> loadTag ( $ subTreeLimit ) : null , 0 , - 1 , [ $ locale ] ) ; $ data = $ this -> filterTags ( $ tags , $ subTreeLimit , $ hideRootTag ) ; return new JsonResponse ( $ data ) ; }
Provides tag children data for tag field edit interface.

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

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