original_string: public static function get_list_of_calendar_types() {
          $calendars = array();
          $calendardirs = \core_component::get_plugin_list('calendartype');
  
          foreach ($calendardirs as $name => $location) {
              $calendars[$name] = get_string('name', "calendartype_{$name}");
          }
  
          return $calendars;
      }
code: public static function get_list_of_calendar_types() {
          $calendars = array();
          $calendardirs = \core_component::get_plugin_list('calendartype');
  
          foreach ($calendardirs as $name => $location) {
              $calendars[$name] = get_string('name', "calendartype_{$name}");
          }
  
          return $calendars;
      }
code_tokens: public static function get_list_of_calendar_types ( ) { $ calendars = array ( ) ; $ calendardirs = \ core_component :: get_plugin_list ( 'calendartype' ) ; foreach ( $ calendardirs as $ name => $ location ) { $ calendars [ $ name ] = get_string ( 'name' , "calendartype_{$name}" ) ; } return $ calendars ; }
docstring: Returns a list of calendar typess available for use.
  
  @return array the list of calendar types
docstring_tokens: Returns a list of calendar typess available for use .