original_string: public function col_eventname($event) {
          // Event name.
          if ($this->filterparams->logreader instanceof logstore_legacy\log\store) {
              // Hack for support of logstore_legacy.
              $eventname = $event->eventname;
          } else {
              $eventname = $event->get_name();
          }
          if ($url = $event->get_url()) {
              $eventname = $this->action_link($url, $eventname, 'action');
          }
          return $eventname;
      }
code: public function col_eventname($event) {
          // Event name.
          if ($this->filterparams->logreader instanceof logstore_legacy\log\store) {
              // Hack for support of logstore_legacy.
              $eventname = $event->eventname;
          } else {
              $eventname = $event->get_name();
          }
          if ($url = $event->get_url()) {
              $eventname = $this->action_link($url, $eventname, 'action');
          }
          return $eventname;
      }
code_tokens: public function col_eventname ( $ event ) { // Event name. if ( $ this -> filterparams -> logreader instanceof logstore_legacy \ log \ store ) { // Hack for support of logstore_legacy. $ eventname = $ event -> eventname ; } else { $ eventname = $ event -> get_name ( ) ; } if ( $ url = $ event -> get_url ( ) ) { $ eventname = $ this -> action_link ( $ url , $ eventname , 'action' ) ; } return $ eventname ; }
docstring: Generate the event name column.
  
  @param stdClass $event event data.
  @return string HTML for the event name column
docstring_tokens: Generate the event name column .