public function accept()
    {
        $event = new MenuItemEvent();
        $event->item = $this->current();
        if (isset($this->getInnerIterator()->with['hidden'])) {
            $event->visible = true;
        }
        Yii::$app->menu->trigger(Menu::EVENT_ON_ITEM_FIND, $event);
        return $event->visible;
    }
public function accept()
    {
        $event = new MenuItemEvent();
        $event->item = $this->current();
        if (isset($this->getInnerIterator()->with['hidden'])) {
            $event->visible = true;
        }
        Yii::$app->menu->trigger(Menu::EVENT_ON_ITEM_FIND, $event);
        return $event->visible;
    }
public function accept ( ) { $ event = new MenuItemEvent ( ) ; $ event -> item = $ this -> current ( ) ; if ( isset ( $ this -> getInnerIterator ( ) -> with [ 'hidden' ] ) ) { $ event -> visible = true ; } Yii :: $ app -> menu -> trigger ( Menu :: EVENT_ON_ITEM_FIND , $ event ) ; return $ event -> visible ; }
Verifys if an menu item does have valid event response.

{@inheritDoc}
@see FilterIterator::accept()
Verifys if an menu item does have valid event response .