original_string: public static function get_observer_list() {
          $events = \core\event\manager::get_all_observers();
          foreach ($events as $key => $observers) {
              foreach ($observers as $observerskey => $observer) {
                  $events[$key][$observerskey]->parentplugin =
                          \core_plugin_manager::instance()->get_parent_of_subplugin($observer->plugintype);
              }
          }
          return $events;
      }
code: public static function get_observer_list() {
          $events = \core\event\manager::get_all_observers();
          foreach ($events as $key => $observers) {
              foreach ($observers as $observerskey => $observer) {
                  $events[$key][$observerskey]->parentplugin =
                          \core_plugin_manager::instance()->get_parent_of_subplugin($observer->plugintype);
              }
          }
          return $events;
      }
code_tokens: public static function get_observer_list ( ) { $ events = \ core \ event \ manager :: get_all_observers ( ) ; foreach ( $ events as $ key => $ observers ) { foreach ( $ observers as $ observerskey => $ observer ) { $ events [ $ key ] [ $ observerskey ] -> parentplugin = \ core_plugin_manager :: instance ( ) -> get_parent_of_subplugin ( $ observer -> plugintype ) ; } } return $ events ; }
docstring: Get the full list of observers for the system.
  
  @return array An array of observers in the system.
docstring_tokens: Get the full list of observers for the system .