original_string: 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);
              }
          });
      }
code: 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);
              }
          });
      }
code_tokens: 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 ) ; } } ) ; }
docstring: Registers events for menu items.
docstring_tokens: Registers events for menu items .