plugin/tag/Controller/TagController.php
public function listObjectsAction(Tag $tag, Request $request)
    {
        return new JsonResponse(
            $this->finder->search(TaggedObject::class, array_merge(
                $request->query->all(),
                ['hiddenFilters' => [$this->getName() => $tag->getUuid()]]
            ))
        );
    }
public function listObjectsAction(Tag $tag, Request $request)
    {
        return new JsonResponse(
            $this->finder->search(TaggedObject::class, array_merge(
                $request->query->all(),
                ['hiddenFilters' => [$this->getName() => $tag->getUuid()]]
            ))
        );
    }
public function listObjectsAction ( Tag $ tag , Request $ request ) { return new JsonResponse ( $ this -> finder -> search ( TaggedObject :: class , array_merge ( $ request -> query -> all ( ) , [ 'hiddenFilters' => [ $ this -> getName ( ) => $ tag -> getUuid ( ) ] ] ) ) ) ; }
List all objects linked to a Tag.

@EXT\Route("/{id}/object", name="apiv2_tag_list_objects")
@EXT\ParamConverter("tag", class="ClarolineTagBundle:Tag", options={"mapping": {"id": "uuid"}})
@EXT\Method("GET")

@param Tag     $tag
@param Request $request

@return JsonResponse
List all objects linked to a Tag .