From 5548876babe6452ed5755da082056c4fc49f68b2 Mon Sep 17 00:00:00 2001 From: Tomasz Kryszan Date: Tue, 5 Sep 2023 13:03:02 +0200 Subject: [PATCH] Renamed compontent name to layout-content-after --- src/bundle/Resources/config/services/components.yaml | 6 +++--- .../Resources/views/themes/admin/ui/layout.html.twig | 2 +- ...html_body.html.twig => layout_content_after.html.twig} | 0 .../Templating/Twig/EmbeddedItemEditFormExtensionTest.php | 8 ++++++++ 4 files changed, 12 insertions(+), 4 deletions(-) rename src/bundle/Resources/views/themes/admin/ui/{html_body.html.twig => layout_content_after.html.twig} (100%) diff --git a/src/bundle/Resources/config/services/components.yaml b/src/bundle/Resources/config/services/components.yaml index d8cc01704a..890c5dacf4 100644 --- a/src/bundle/Resources/config/services/components.yaml +++ b/src/bundle/Resources/config/services/components.yaml @@ -40,9 +40,9 @@ services: Ibexa\Contracts\AdminUi\Component\Renderer\RendererInterface: '@Ibexa\AdminUi\Component\Renderer\DefaultRenderer' - ibexa.adminui.html.body: + ibexa.adminui.layout.content.after: parent: Ibexa\AdminUi\Component\TwigComponent arguments: - $template: '@@ibexadesign/ui/html_body.html.twig' + $template: '@@ibexadesign/ui/layout_content_after.html.twig' tags: - - { name: ibexa.admin_ui.component, group: 'html-body' } + - { name: ibexa.admin_ui.component, group: 'layout-content-after' } diff --git a/src/bundle/Resources/views/themes/admin/ui/layout.html.twig b/src/bundle/Resources/views/themes/admin/ui/layout.html.twig index ece0b0bfe3..dcd0b6c36c 100644 --- a/src/bundle/Resources/views/themes/admin/ui/layout.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/layout.html.twig @@ -221,7 +221,7 @@ {% endblock %} {% endif %} - {{ ibexa_render_component_group('html-body') }} + {{ ibexa_render_component_group('layout-content-after') }} {{ encore_entry_script_tags('ibexa-admin-ui-layout-js', null, 'ibexa') }} {{ encore_entry_script_tags('ibexa-admin-ui-udw-tabs-js', null, 'ibexa') }} diff --git a/src/bundle/Resources/views/themes/admin/ui/html_body.html.twig b/src/bundle/Resources/views/themes/admin/ui/layout_content_after.html.twig similarity index 100% rename from src/bundle/Resources/views/themes/admin/ui/html_body.html.twig rename to src/bundle/Resources/views/themes/admin/ui/layout_content_after.html.twig diff --git a/tests/bundle/Templating/Twig/EmbeddedItemEditFormExtensionTest.php b/tests/bundle/Templating/Twig/EmbeddedItemEditFormExtensionTest.php index 7727e7ade4..26656cbe3b 100644 --- a/tests/bundle/Templating/Twig/EmbeddedItemEditFormExtensionTest.php +++ b/tests/bundle/Templating/Twig/EmbeddedItemEditFormExtensionTest.php @@ -36,6 +36,14 @@ protected function getExtensions(): array /** * @dataProvider getLegacyTests * @group legacy + * + * @param string $file + * @param string $message + * @param string $condition + * @param array $templates + * @param string $exception + * @param array $outputs + * @param string $deprecation */ public function testLegacyIntegration( $file,