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

[Docs] Improve menu customization #197

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Dec 23, 2024

No description provided.

@loic425 loic425 changed the title Docs/improve menu customization [Docs] Improve menu customization Dec 23, 2024
@loic425 loic425 force-pushed the docs/improve-menu-customization branch 2 times, most recently from 4dec74d to db6e784 Compare December 23, 2024 15:49
Now you can add submenu items:

```php
#[AsDecorator(decorates: 'sylius_admin_ui.knp.menu_builder')]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding use here to avoid searching to the wrong class ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, indeed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the "AsDecorator" class on "use" on the previous example.
Here, the important part is to add a new sub menu with items.

@loic425 loic425 force-pushed the docs/improve-menu-customization branch from db6e784 to d13aa75 Compare January 2, 2025 07:44
@loic425 loic425 merged commit 58d5bb6 into Sylius:main Jan 8, 2025
8 checks passed
@loic425 loic425 deleted the docs/improve-menu-customization branch January 8, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants