original_string: public function get_plugin_types_menu() {
          global $CFG;
  
          $pluginman = core_plugin_manager::instance();
  
          $menu = array('' => get_string('choosedots'));
          foreach (array_keys($pluginman->get_plugin_types()) as $plugintype) {
              $menu[$plugintype] = $pluginman->plugintype_name($plugintype).' ('.$plugintype.')';
          }
  
          return $menu;
      }
code: public function get_plugin_types_menu() {
          global $CFG;
  
          $pluginman = core_plugin_manager::instance();
  
          $menu = array('' => get_string('choosedots'));
          foreach (array_keys($pluginman->get_plugin_types()) as $plugintype) {
              $menu[$plugintype] = $pluginman->plugintype_name($plugintype).' ('.$plugintype.')';
          }
  
          return $menu;
      }
code_tokens: public function get_plugin_types_menu ( ) { global $ CFG ; $ pluginman = core_plugin_manager :: instance ( ) ; $ menu = array ( '' => get_string ( 'choosedots' ) ) ; foreach ( array_keys ( $ pluginman -> get_plugin_types ( ) ) as $ plugintype ) { $ menu [ $ plugintype ] = $ pluginman -> plugintype_name ( $ plugintype ) . ' (' . $ plugintype . ')' ; } return $ menu ; }
docstring: Returns localised list of available plugin types
  
  @return array (string)plugintype => (string)plugin name
docstring_tokens: Returns localised list of available plugin types