public function col_component($event) {
        // Component.
        $componentname = $event->component;
        if (($event->component === 'core') || ($event->component === 'legacy')) {
            return  get_string('coresystem');
        } else if (get_string_manager()->string_exists('pluginname', $event->component)) {
            return get_string('pluginname', $event->component);
        } else {
            return $componentname;
        }
    }
public function col_component($event) {
        // Component.
        $componentname = $event->component;
        if (($event->component === 'core') || ($event->component === 'legacy')) {
            return  get_string('coresystem');
        } else if (get_string_manager()->string_exists('pluginname', $event->component)) {
            return get_string('pluginname', $event->component);
        } else {
            return $componentname;
        }
    }
public function col_component ( $ event ) { // Component. $ componentname = $ event -> component ; if ( ( $ event -> component === 'core' ) || ( $ event -> component === 'legacy' ) ) { return get_string ( 'coresystem' ) ; } else if ( get_string_manager ( ) -> string_exists ( 'pluginname' , $ event -> component ) ) { return get_string ( 'pluginname' , $ event -> component ) ; } else { return $ componentname ; } }
Generate the component column.

@param stdClass $event event data.
@return string HTML for the component column
Generate the component column .