Skip to content

Commit

Permalink
[Zone] add priorities to twig hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMilek committed Oct 15, 2024
1 parent deada62 commit 922912a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,38 @@ sylius_twig_hooks:
type: '@=_context.resource.getType()'
form: '@=_context.form'
template: '@SyliusAdmin/zone/form.html.twig'
priority: 0

'sylius_admin.zone.create.content.form':
sections:
template: '@SyliusAdmin/zone/form/sections.html.twig'
priority: 0

'sylius_admin.zone.create.content.form.sections':
general:
template: '@SyliusAdmin/zone/form/sections/general.html.twig'
priority: 100
members:
template: '@SyliusAdmin/zone/form/sections/members.html.twig'
priority: 0

'sylius_admin.zone.create.content.form.sections.members':
member:
template: '@SyliusAdmin/zone/form/sections/members/member.html.twig'
priority: 0

'sylius_admin.zone.create.content.form.sections.general':
default:
enabled: false
code:
template: '@SyliusAdmin/zone/form/sections/general/code.html.twig'
priority: 300
type:
template: '@SyliusAdmin/zone/form/sections/general/type.html.twig'
priority: 200
name:
template: '@SyliusAdmin/zone/form/sections/general/name.html.twig'
priority: 100
scope:
template: '@SyliusAdmin/zone/form/sections/general/scope.html.twig'
priority: 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,38 @@ sylius_twig_hooks:
template: '@SyliusAdmin/zone/form.html.twig'
configuration:
method: 'PUT'
priority: 0

'sylius_admin.zone.update.content.form':
sections:
template: '@SyliusAdmin/zone/form/sections.html.twig'
priority: 0

'sylius_admin.zone.update.content.form.sections':
general:
template: '@SyliusAdmin/zone/form/sections/general.html.twig'
priority: 100
members:
template: '@SyliusAdmin/zone/form/sections/members.html.twig'
priority: 0

'sylius_admin.zone.update.content.form.sections.members':
member:
template: '@SyliusAdmin/zone/form/sections/members/member.html.twig'
priority: 0

'sylius_admin.zone.update.content.form.sections.general':
default:
enabled: false
code:
template: '@SyliusAdmin/zone/form/sections/general/code.html.twig'
priority: 300
type:
template: '@SyliusAdmin/zone/form/sections/general/type.html.twig'
priority: 200
name:
template: '@SyliusAdmin/zone/form/sections/general/name.html.twig'
priority: 100
scope:
template: '@SyliusAdmin/zone/form/sections/general/scope.html.twig'
priority: 0

0 comments on commit 922912a

Please sign in to comment.