Sophisticated, Lightweight and Simple

Jump to docs navigation
Edit on GitHub

Note: You are currently reading the documentation for Bolt 3.0. Looking for the documentation for Bolt 3.2 instead?

Extending » Intermediate » Back-end Menu Items

Bolt allows extensions to insert submenus under the Extras menu in the admin UI.

Bolt provides a helper function that will allow additional MenuEntry objects to be added to the admin UI menus when they are built in the Bolt\Menu\AdminMenuBuilder class.

Registering Menu Entries

Menu objects for registration can be created using a Bolt\Menu\MenuEntry class object.

    protected function registerMenuEntries()
        $menu = new MenuEntry('koala-menu', 'koala');
        $menu->setLabel('Koala Catcher')

        return [

In the above example:

Note: Menu entries are mounted on extend/, because they show up under the 'Extras' menu option. When adding an accompanying route for a new menu item, make sure to catch it correctly. For the above example, it should match /extend/koala.

Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on IRC.
Spotted a typo, or have something to add? Edit this page on GitHub.