WIP: Implement stuff
This commit is contained in:
1 parent
25a016a02b
commit
dec8feedf2
10 files changed
+53
-10
No files matched your search
@@ -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,
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user