public function editAction(Request $request, int $urlId): Response
    {
        $url = $this->urlService->loadById($urlId);

        $form = $this->formFactory->createUrlEditForm(new URLUpdateData([
            'id' => $url->id,
            'url' => $url->url,
        ]));

        $form->handleRequest($request);
        if ($form->isSubmitted()) {
            $result = $this->submitHandler->handle($form, function (URLUpdateData $data) use ($url) {
                $this->urlService->updateUrl($url, $data);
                $this->notificationHandler->success(
                    $this->translator->trans('url.update.success', [], 'linkmanager')
                );

                return $this->redirectToRoute('ezplatform.link_manager.list');
            });

            if ($result instanceof Response) {
                return $result;
            }
        }

        return $this->render('@ezdesign/link_manager/edit.html.twig', [
            'form' => $form->createView(),
            'url' => $url,
        ]);
    }