original_string: public function events_handlers($eventshandlers) {
          if ($eventshandlers) {
              $components = '';
              foreach ($eventshandlers as $eventhandler) {
                  $components .= $eventhandler->component . ', ';
              }
              $components = rtrim($components, ', ');
              return $this->warning(get_string('eventshandlersinuse', 'admin', $components));
          }
      }
code: public function events_handlers($eventshandlers) {
          if ($eventshandlers) {
              $components = '';
              foreach ($eventshandlers as $eventhandler) {
                  $components .= $eventhandler->component . ', ';
              }
              $components = rtrim($components, ', ');
              return $this->warning(get_string('eventshandlersinuse', 'admin', $components));
          }
      }
code_tokens: public function events_handlers ( $ eventshandlers ) { if ( $ eventshandlers ) { $ components = '' ; foreach ( $ eventshandlers as $ eventhandler ) { $ components .= $ eventhandler -> component . ', ' ; } $ components = rtrim ( $ components , ', ' ) ; return $ this -> warning ( get_string ( 'eventshandlersinuse' , 'admin' , $ components ) ) ; } }
docstring: Renders events 1 API handlers warning.
  
  @param array $eventshandlers
  @return string
docstring_tokens: Renders events 1 API handlers warning .