Bundle/BlogBundle/Listener/BlogMenuListener.php
public function addBlogContextual($event)
    {
        $floatActionDropdown = $this->menuBuilder->getFloatActionDropdown();

        $floatActionDropdown->addChild(
            'menu.blog.article.new',
            [
                'route'           => 'victoire_blog_article_new',
                'routeParameters' => ['id' => $event->getPage()->getId()],
                ]
        )->setLinkAttribute('data-toggle', 'vic-modal');
    }
public function addBlogContextual($event)
    {
        $floatActionDropdown = $this->menuBuilder->getFloatActionDropdown();

        $floatActionDropdown->addChild(
            'menu.blog.article.new',
            [
                'route'           => 'victoire_blog_article_new',
                'routeParameters' => ['id' => $event->getPage()->getId()],
                ]
        )->setLinkAttribute('data-toggle', 'vic-modal');
    }
public function addBlogContextual ( $ event ) { $ floatActionDropdown = $ this -> menuBuilder -> getFloatActionDropdown ( ) ; $ floatActionDropdown -> addChild ( 'menu.blog.article.new' , [ 'route' => 'victoire_blog_article_new' , 'routeParameters' => [ 'id' => $ event -> getPage ( ) -> getId ( ) ] , ] ) -> setLinkAttribute ( 'data-toggle' , 'vic-modal' ) ; }
add a blog contextual menu item.

@param PageMenuContextualEvent $event

@return \Knp\Menu\ItemInterface
add a blog contextual menu item .