Skip to content

Make menu handles clearly #2

@MichaelBrauner

Description

@MichaelBrauner

Atm we have a problem when you have two times MainMenu.
The twig helper can not decide what Menu to choose from when you type:

menu('main_menu')

The handles should be take into account the last part of the class Namespace.

So it would be like that:

Class Handle
App\Menu\Frontend\MainMenu frontend_main_menu
App\Menu\Backend\MainMenu backend_main_menu
App\Menu\MainMenu menu_main_menu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions