original_string: 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;
          }
      }
code: 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;
          }
      }
code_tokens: 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 ; } }
docstring: Generate the component column.
  
  @param stdClass $event event data.
  @return string HTML for the component column
docstring_tokens: Generate the component column .