Skip to content

Commit

Permalink
fixed #199 - adjust docs to match interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Sep 9, 2024
1 parent a3b844e commit 17f7628
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ class MenuBuilderSubscriber implements EventSubscriberInterface
{
$blog = new MenuItemModel('blogId', 'Blog', 'item_symfony_route', [], 'fas fa-tachometer-alt');

$blog->addChild(
new MenuItemModel('ChildOneItemId', 'ChildOneDisplayName', 'child_1_route', [], 'fas fa-rss-square')
)->addChild(
new MenuItemModel('ChildTwoItemId', 'ChildTwoDisplayName', 'child_2_route')
);
$blog->addChild(new MenuItemModel('ChildOneItemId', 'ChildOneDisplayName', 'child_1_route', [], 'fas fa-rss-square'));
$blog->addChild(new MenuItemModel('ChildTwoItemId', 'ChildTwoDisplayName', 'child_2_route'));

$event->addItem($blog);

Expand Down

0 comments on commit 17f7628

Please sign in to comment.