original_string: protected function getPageLinkTypes()
      {
          $result = [];
  
          $apiResult = Event::fire('backend.richeditor.listTypes');
          if (is_array($apiResult)) {
              foreach ($apiResult as $typeList) {
                  if (!is_array($typeList)) {
                      continue;
                  }
  
                  foreach ($typeList as $typeCode => $typeName) {
                      $result[$typeCode] = $typeName;
                  }
              }
          }
  
          return $result;
      }
code: protected function getPageLinkTypes()
      {
          $result = [];
  
          $apiResult = Event::fire('backend.richeditor.listTypes');
          if (is_array($apiResult)) {
              foreach ($apiResult as $typeList) {
                  if (!is_array($typeList)) {
                      continue;
                  }
  
                  foreach ($typeList as $typeCode => $typeName) {
                      $result[$typeCode] = $typeName;
                  }
              }
          }
  
          return $result;
      }
code_tokens: protected function getPageLinkTypes ( ) { $ result = [ ] ; $ apiResult = Event :: fire ( 'backend.richeditor.listTypes' ) ; if ( is_array ( $ apiResult ) ) { foreach ( $ apiResult as $ typeList ) { if ( ! is_array ( $ typeList ) ) { continue ; } foreach ( $ typeList as $ typeCode => $ typeName ) { $ result [ $ typeCode ] = $ typeName ; } } } return $ result ; }
docstring: Returns a list of registered page link types.
  This is reserved functionality for separating the links by type.
  @return array Returns an array of registered page link types
docstring_tokens: Returns a list of registered page link types . This is reserved functionality for separating the links by type .