private function redirectToForm(string $formUuid): Response
    {
        /** @var FormRead|null $formRead */
        $formRead = $this->entityManager->getRepository(FormRead::class)->findOneBy([
            'uuid' => $formUuid,
        ]);

        if ($formRead) {
            return $this->redirectToRoute('forms_edit_aggregate', [
                'id' => $formRead->getId(),
            ]);
        }

        return $this->redirect('/admin');
    }
private function redirectToForm(string $formUuid): Response
    {
        /** @var FormRead|null $formRead */
        $formRead = $this->entityManager->getRepository(FormRead::class)->findOneBy([
            'uuid' => $formUuid,
        ]);

        if ($formRead) {
            return $this->redirectToRoute('forms_edit_aggregate', [
                'id' => $formRead->getId(),
            ]);
        }

        return $this->redirect('/admin');
    }
private function redirectToForm ( string $ formUuid ) : Response { /** @var FormRead|null $formRead */ $ formRead = $ this -> entityManager -> getRepository ( FormRead :: class ) -> findOneBy ( [ 'uuid' => $ formUuid , ] ) ; if ( $ formRead ) { return $ this -> redirectToRoute ( 'forms_edit_aggregate' , [ 'id' => $ formRead -> getId ( ) , ] ) ; } return $ this -> redirect ( '/admin' ) ; }
Redirects to the edit page of a Form Aggregate by its uuid.

@param string $formUuid

@return Response
Redirects to the edit page of a Form Aggregate by its uuid .