-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template events system - replace topbar with newly introduced events #10991
Conversation
pamil
commented
Dec 27, 2019
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | related to #10924 |
License | MIT |
@@ -0,0 +1 @@ | |||
{{ sonata_block_render_event('sylius.shop.layout.after_security_widget') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking about the way to generalise these calls, creating a template for every legacy function call seems like an overkill.
currency_switcher: | ||
template: "@SyliusShop/Block/Layout/_currencySwitcher.html.twig" | ||
locale_switcher: | ||
template: "@SyliusShop/Block/Layout/_localeSwitcher.html.twig" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to figure out priorities for those blocks. Any ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the following conventions:
- last meaningful block starts at priority: 10
- other meaningful blocks are having a bigger priority than the last one by +10
- legacy Sonata events are +5 / -5 (before / after) from the related meaningful block
fe39bc1
to
7e5abe8
Compare
7e5abe8
to
a9af307
Compare