original_string: public static function get_plugin_list($eventlist = array()) {
          if (empty($eventlist)) {
              $eventlist = self::get_all_eventlist();
          }
          $plugins = array_keys($eventlist);
          $return = array();
          foreach ($plugins as $plugin) {
              if ($plugin === 'core') {
                  $return[$plugin] = get_string('core', 'tool_monitor');
              } else if (get_string_manager()->string_exists('pluginname', $plugin)) {
                  $return[$plugin] = get_string('pluginname', $plugin);
              } else {
                  $return[$plugin] = $plugin;
              }
          }
  
          return $return;
      }
code: public static function get_plugin_list($eventlist = array()) {
          if (empty($eventlist)) {
              $eventlist = self::get_all_eventlist();
          }
          $plugins = array_keys($eventlist);
          $return = array();
          foreach ($plugins as $plugin) {
              if ($plugin === 'core') {
                  $return[$plugin] = get_string('core', 'tool_monitor');
              } else if (get_string_manager()->string_exists('pluginname', $plugin)) {
                  $return[$plugin] = get_string('pluginname', $plugin);
              } else {
                  $return[$plugin] = $plugin;
              }
          }
  
          return $return;
      }
code_tokens: public static function get_plugin_list ( $ eventlist = array ( ) ) { if ( empty ( $ eventlist ) ) { $ eventlist = self :: get_all_eventlist ( ) ; } $ plugins = array_keys ( $ eventlist ) ; $ return = array ( ) ; foreach ( $ plugins as $ plugin ) { if ( $ plugin === 'core' ) { $ return [ $ plugin ] = get_string ( 'core' , 'tool_monitor' ) ; } else if ( get_string_manager ( ) -> string_exists ( 'pluginname' , $ plugin ) ) { $ return [ $ plugin ] = get_string ( 'pluginname' , $ plugin ) ; } else { $ return [ $ plugin ] = $ plugin ; } } return $ return ; }
docstring: Return list of plugins that have events.
  
  @param array $eventlist a list of events present in the system {@link eventlist::get_all_eventlist}.
  
  @return array list of plugins with human readable name.
docstring_tokens: Return list of plugins that have events .