public function convertToSynonymAction(Request $request, Tag $tag)
    {
        $this->denyAccessUnlessGranted('ez:tags:makesynonym');

        $form = $this->createForm(
            TagConvertType::class,
            null,
            [
                'tag' => $tag,
                'action' => $request->getPathInfo(),
            ]
        );

        $form->handleRequest($request);

        if ($form->isSubmitted() && $form->isValid()) {
            $mainTag = $this->tagsService->loadTag($form->getData()['mainTag']);

            $this->tagsService->convertToSynonym($tag, $mainTag);

            $this->addFlashMessage(
                'success',
                'tag_converted',
                [
                    '%tagKeyword%' => $tag->keyword,
                    '%mainTagKeyword%' => $mainTag->keyword,
                ]
            );

            return $this->redirectToTag($mainTag);
        }

        return $this->render(
            '@NetgenTags/admin/tag/convert.html.twig',
            [
                'form' => $form->createView(),
                'tag' => $tag,
            ]
        );
    }