Bundle/BusinessPageBundle/Listener/BusinessPageMenuListener.php
public function addContextual($event)
    {
        $bottomRightNavbar = $this->menuBuilder->getBottomRightNavbar();

        //if there is a template, we add the link in the top bar
        $bottomRightNavbar->addChild('menu.page.settings',
            [
                'route'           => 'victoire_business_template_edit',
                'routeParameters' => ['id' => $event->getPage()->getId()],
                'linkAttributes'  => [
                    'class' => 'v-btn v-btn--sm v-btn--transparent',
                ],
            ]
        )->setLinkAttribute('data-toggle', 'vic-modal');
        $bottomRightNavbar->addChild('menu.page.seoSettings',
            [
                'route'           => 'victoire_seo_pageSeo_settings',
                'routeParameters' => ['id' => $event->getPage()->getId()],
                'linkAttributes'  => [
                    'class' => 'v-btn v-btn--sm v-btn--transparent',
                ],
            ]
        )->setLinkAttribute('data-toggle', 'vic-modal');
    }
public function addContextual($event)
    {
        $bottomRightNavbar = $this->menuBuilder->getBottomRightNavbar();

        //if there is a template, we add the link in the top bar
        $bottomRightNavbar->addChild('menu.page.settings',
            [
                'route'           => 'victoire_business_template_edit',
                'routeParameters' => ['id' => $event->getPage()->getId()],
                'linkAttributes'  => [
                    'class' => 'v-btn v-btn--sm v-btn--transparent',
                ],
            ]
        )->setLinkAttribute('data-toggle', 'vic-modal');
        $bottomRightNavbar->addChild('menu.page.seoSettings',
            [
                'route'           => 'victoire_seo_pageSeo_settings',
                'routeParameters' => ['id' => $event->getPage()->getId()],
                'linkAttributes'  => [
                    'class' => 'v-btn v-btn--sm v-btn--transparent',
                ],
            ]
        )->setLinkAttribute('data-toggle', 'vic-modal');
    }
public function addContextual ( $ event ) { $ bottomRightNavbar = $ this -> menuBuilder -> getBottomRightNavbar ( ) ; //if there is a template, we add the link in the top bar $ bottomRightNavbar -> addChild ( 'menu.page.settings' , [ 'route' => 'victoire_business_template_edit' , 'routeParameters' => [ 'id' => $ event -> getPage ( ) -> getId ( ) ] , 'linkAttributes' => [ 'class' => 'v-btn v-btn--sm v-btn--transparent' , ] , ] ) -> setLinkAttribute ( 'data-toggle' , 'vic-modal' ) ; $ bottomRightNavbar -> addChild ( 'menu.page.seoSettings' , [ 'route' => 'victoire_seo_pageSeo_settings' , 'routeParameters' => [ 'id' => $ event -> getPage ( ) -> getId ( ) ] , 'linkAttributes' => [ 'class' => 'v-btn v-btn--sm v-btn--transparent' , ] , ] ) -> setLinkAttribute ( 'data-toggle' , 'vic-modal' ) ; }
Add the parent menu for a page that extends another one.

@param PageMenuContextualEvent $event

@return \Knp\Menu\ItemInterface
Add the parent menu for a page that extends another one .