public function favouriteToggleAction(User $user, Request $request)
    {
        $nodes = $this->decodeIdsString($request, 'Claroline\CoreBundle\Entity\Resource\ResourceNode');
        $this->manager->toggleFavourites($user, $nodes);

        return new JsonResponse(null, 204);
    }