/**
  * Assign topic solved post data in topic view.
  *
  * @param \phpbb\event\data $event Post data being rendered.
  *
  * @return void
  */
 public function viewtopic_modify_post_row($event)
 {
     $topic_data = $event['topic_data'];
     $post_row = $event['post_row'];
     $url_set_solved = $this->get_url_set_solved($topic_data, $event['row']['post_id']);
     if (!empty($url_set_solved)) {
         $post_row['U_SET_SOLVED'] = $url_set_solved;
     }
     if (!empty($topic_data['topic_solved'])) {
         $post_row['S_TOPIC_SOLVED'] = $topic_data['topic_solved'];
     }
     if ($topic_data['topic_solved'] == $event['row']['post_id'] && $topic_data['topic_type'] != POST_GLOBAL) {
         $post_row['POST_SUBJECT'] .= '  ';
         if (!empty($topic_data['forum_solve_text'])) {
             if (!empty($topic_data['forum_solve_color'])) {
                 $post_row['POST_SUBJECT'] .= sprintf('<span style="color: #%1s">%2s</span>', $topic_data['forum_solve_color'], $topic_data['forum_solve_text']);
             } else {
                 $post_row['POST_SUBJECT'] .= $topic_data['forum_solve_text'];
             }
         } else {
             $post_row['POST_SUBJECT'] .= $this->topicsolved->image('post', 'TOPIC_SOLVED');
         }
     }
     $event['post_row'] = $post_row;
 }