From 354fe48ca712b52cab8d347fc5da57f9f98cbbcd Mon Sep 17 00:00:00 2001 From: Rafikooo Date: Thu, 2 May 2024 18:45:26 +0200 Subject: [PATCH] [Admin] Set explicit priorities for footer hookable in default views hook configs --- .../Resources/config/app/twig_hooks/common/create.yaml | 3 ++- .../Resources/config/app/twig_hooks/common/index.yaml | 1 + .../Resources/config/app/twig_hooks/common/show.yaml | 1 + .../Resources/config/app/twig_hooks/common/update.yaml | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/create.yaml b/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/create.yaml index 7b84ea6df7a7..c8b052950d3d 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/create.yaml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/create.yaml @@ -18,7 +18,8 @@ twig_hooks: configuration: render_rest: true footer: - template: '@SyliusAdmin/Shared/Crud/Common/Content/footer.html.twig' + template: '@SyliusAdmin/shared/crud/common/content/footer.html.twig' + priority: -100 'sylius_admin.common.create.content.header': breadcrumbs: diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/index.yaml b/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/index.yaml index d42a6dfc3802..d3d3f6bebf31 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/index.yaml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/index.yaml @@ -17,6 +17,7 @@ twig_hooks: template: '@SyliusAdmin/shared/crud/index/content/grid.html.twig' footer: template: '@SyliusAdmin/shared/crud/common/content/footer.html.twig' + priority: -100 'sylius_admin.common.index.content.header': breadcrumbs: diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/show.yaml b/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/show.yaml index 73e61dfe37b6..90dba62fbe30 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/show.yaml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/show.yaml @@ -15,6 +15,7 @@ twig_hooks: template: '@SyliusAdmin/shared/crud/common/content/header.html.twig' footer: template: '@SyliusAdmin/shared/crud/common/content/footer.html.twig' + priority: -100 'sylius_admin.common.show.content.header': breadcrumbs: diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/update.yaml b/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/update.yaml index d345d08be6fa..cf8b880cf961 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/update.yaml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/app/twig_hooks/common/update.yaml @@ -18,7 +18,8 @@ twig_hooks: configuration: render_rest: true footer: - template: '@SyliusAdmin/Shared/Crud/Common/Content/footer.html.twig' + template: '@SyliusAdmin/shared/crud/common/content/footer.html.twig' + priority: -100 'sylius_admin.common.update.content.header': breadcrumbs: