protected function bootMenuItemEvents()
    {
        Event::listen('pages.menuitem.listTypes', function () {
            return [
                'cms-page' => 'cms::lang.page.cms_page'
            ];
        });

        Event::listen('pages.menuitem.getTypeInfo', function ($type) {
            if ($type === 'cms-page') {
                return CmsPage::getMenuTypeInfo($type);
            }
        });

        Event::listen('pages.menuitem.resolveItem', function ($type, $item, $url, $theme) {
            if ($type === 'cms-page') {
                return CmsPage::resolveMenuItem($item, $url, $theme);
            }
        });
    }
protected function bootMenuItemEvents()
    {
        Event::listen('pages.menuitem.listTypes', function () {
            return [
                'cms-page' => 'cms::lang.page.cms_page'
            ];
        });

        Event::listen('pages.menuitem.getTypeInfo', function ($type) {
            if ($type === 'cms-page') {
                return CmsPage::getMenuTypeInfo($type);
            }
        });

        Event::listen('pages.menuitem.resolveItem', function ($type, $item, $url, $theme) {
            if ($type === 'cms-page') {
                return CmsPage::resolveMenuItem($item, $url, $theme);
            }
        });
    }
protected function bootMenuItemEvents ( ) { Event :: listen ( 'pages.menuitem.listTypes' , function ( ) { return [ 'cms-page' => 'cms::lang.page.cms_page' ] ; } ) ; Event :: listen ( 'pages.menuitem.getTypeInfo' , function ( $ type ) { if ( $ type === 'cms-page' ) { return CmsPage :: getMenuTypeInfo ( $ type ) ; } } ) ; Event :: listen ( 'pages.menuitem.resolveItem' , function ( $ type , $ item , $ url , $ theme ) { if ( $ type === 'cms-page' ) { return CmsPage :: resolveMenuItem ( $ item , $ url , $ theme ) ; } } ) ; }
Registers events for menu items.
Registers events for menu items .