Customizing Menus
{{ ux_icon('tabler:plus', { class: 'icon' }) }} Step 1. Create a listener
<?php
namespace App\Menu;
use Sylius\Bundle\UiBundle\Menu\Event\MenuBuilderEvent;
final class AdminMenuListener
{
public function addAdminMenuItems(MenuBuilderEvent $event): void
{
$menu = $event->getMenu();
$newSubmenu = $menu
->addChild('new')
->setLabel('Custom Admin Menu')
;
$newSubmenu
->addChild('new-subitem')
->setLabel('Custom Admin Menu Item')
;
}
}Step 2. Register your listener

Admin Customer Show Menu
Step 1. Configure your new hook for the custom action
Step 2. Add hook content

Admin Order Show Menu
Step 1. Configure your new hook for the custom action
Step 2. Add hook content

Admin Product Form Tabs
Step 1. Configure your new hook for the custom tab
Step 2. Create templates for your tab (side_navigation) and content (sections)

Admin Product Variant Form Tabs
Step 1. Configure your new hook for the custom tab
Step 2. Create templates for your tab (side_navigation) and content (sections)

Shop Account Menu
Step 1. Create a listener
Step 2. Register your listener

Summary
Last updated
Was this helpful?
