original_string: public function pick_action_icon(moodle_url $url, $text, $icon = '', $class = '') {
  
          $img = $this->output->pix_icon($icon, '');
          $txt = html_writer::tag('div', $text, array('class' => 'action-text'));
          return html_writer::link($url, $img . $txt, array('class' => 'action '.$class));
      }
code: public function pick_action_icon(moodle_url $url, $text, $icon = '', $class = '') {
  
          $img = $this->output->pix_icon($icon, '');
          $txt = html_writer::tag('div', $text, array('class' => 'action-text'));
          return html_writer::link($url, $img . $txt, array('class' => 'action '.$class));
      }
code_tokens: public function pick_action_icon ( moodle_url $ url , $ text , $ icon = '' , $ class = '' ) { $ img = $ this -> output -> pix_icon ( $ icon , '' ) ; $ txt = html_writer :: tag ( 'div' , $ text , array ( 'class' => 'action-text' ) ) ; return html_writer :: link ( $ url , $ img . $ txt , array ( 'class' => 'action ' . $ class ) ) ; }
docstring: Renders the template action icon
  
  @param moodle_url $url action URL
  @param string $text action text
  @param string $icon the name of the icon to use
  @param string $class extra class of this action
  @return string
docstring_tokens: Renders the template action icon