diff --git a/core/Crud/CrudConfiguration.php b/core/Crud/CrudConfiguration.php index 451e337..3bc0282 100644 --- a/core/Crud/CrudConfiguration.php +++ b/core/Crud/CrudConfiguration.php @@ -13,6 +13,7 @@ class CrudConfiguration { protected array $pageTitles = []; protected array $pageRoutes = []; + protected array $pageRouteParams = []; protected array $actions = []; protected array $batchActions = []; protected array $actionTitles = []; @@ -67,6 +68,18 @@ class CrudConfiguration return $this->pageRoutes[$page]; } + public function setPageRouteParams(string $page, array $params): self + { + $this->pageRouteParams[$page] = $params; + + return $this; + } + + public function getPageRouteParams(string $page): array + { + return $this->pageRouteParams[$page] ?? []; + } + /* -- */ public function setForm(string $context, string $form, array $options = []): self diff --git a/core/Entity/Site/Page/Page.php b/core/Entity/Site/Page/Page.php index f48602d..58280fd 100644 --- a/core/Entity/Site/Page/Page.php +++ b/core/Entity/Site/Page/Page.php @@ -53,7 +53,7 @@ class Page implements EntityInterface /** * @ORM\Column(type="string", length=255, nullable=true) */ - protected $metaDescrition; + protected $metaDescription; /** * @ORM\Column(type="string", length=255, nullable=true) @@ -192,14 +192,14 @@ class Page implements EntityInterface return $this; } - public function getMetaDescrition(): ?string + public function getMetaDescription(): ?string { - return $this->metaDescrition; + return $this->metaDescription; } - public function setMetaDescrition(?string $metaDescrition): self + public function setMetaDescription(?string $metaDescription): self { - $this->metaDescrition = $metaDescrition; + $this->metaDescription = $metaDescription; return $this; } diff --git a/core/Form/Site/Page/PageType.php b/core/Form/Site/Page/PageType.php index 5ac2eba..b6db1ad 100644 --- a/core/Form/Site/Page/PageType.php +++ b/core/Form/Site/Page/PageType.php @@ -44,7 +44,7 @@ class PageType extends AbstractType ); $builder->add( - 'metaDescrition', + 'metaDescription', TextType::class, [ 'label' => 'Description', diff --git a/core/Resources/views/admin/crud/_form_translations.html.twig b/core/Resources/views/admin/crud/_form_translations.html.twig index d0f8a6a..f89386e 100644 --- a/core/Resources/views/admin/crud/_form_translations.html.twig +++ b/core/Resources/views/admin/crud/_form_translations.html.twig @@ -16,7 +16,7 @@