Sulu\Bundle\AdminBundle\Navigation\NavigationItem::setEvent PHP Method

setEvent() public method

public setEvent ( string $event )
$event string
    public function setEvent($event)
    {
        $this->event = $event;
    }

Usage Example

Example #1
0
 public function __construct($title)
 {
     $rootNavigationItem = new NavigationItem($title);
     $section = new NavigationItem('');
     $rootNavigationItem->addChild($section);
     $search = new NavigationItem('navigation.search');
     $search->setIcon('search');
     $search->setEvent('search');
     $section->addChild($search);
     $this->setNavigation(new Navigation($rootNavigationItem));
 }