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));
        }
    }
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));
        }
    }
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 ) ) ; } }
Renders events 1 API handlers warning.

@param array $eventshandlers
@return string
Renders events 1 API handlers warning .