WIP: Implement stuff

This commit is contained in:
Björn Fromme committed 2023-10-03 18:05:12 +02:00
1 parent 25a016a02b
commit dec8feedf2
10 files changed
+53 -10

No files matched your search

+6 -1
View File
@@ -8,6 +8,7 @@ use Knp\Menu\ItemInterface;
use Symfony\Bundle\SecurityBundle\Security;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken;
use Symfony\Component\Uid\Uuid;
use Symfony\Contracts\Translation\TranslatorInterface;
abstract class AbstractMenuBuilder
@@ -141,6 +142,10 @@ abstract class AbstractMenuBuilder
protected function addDivider(ItemInterface $menu): void
{
$menu->addChild('%DIVIDER%');
$menu->addChild(Uuid::v4(), [
'extras' => [
'divider' => true,
],
]);
}
}