Skip to content
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

Migrating the shop grid configuration to php #15419

Open
wants to merge 7 commits into
base: 2.0
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding dirty fix for test
  • Loading branch information
mamazu committed Sep 27, 2024
commit 2d73ce121d17284330237ab3933adac5f8bacb80
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %}

{% set path = options.link.url|default(path(
options.link.route|default(grid.requestConfiguration.getRouteName('show')),
options.link.parameters|default({'id': data.id})
)) %}
{{ buttons.default(path, action.label, null, action.options.icon|default('credit card alternative'), 'blue') }}