original_string: private function get_subscription_button_html() : string {
          global $PAGE;
  
          $forumrecord = $this->forumrecord;
          $discussion = $this->discussion;
          $html = html_writer::div(
              forum_get_discussion_subscription_icon($forumrecord, $discussion->get_id(), null, true),
              'discussionsubscription'
          );
          $html .= forum_get_discussion_subscription_icon_preloaders();
          // Add the subscription toggle JS.
          $PAGE->requires->yui_module('moodle-mod_forum-subscriptiontoggle', 'Y.M.mod_forum.subscriptiontoggle.init');
          return $html;
      }
code: private function get_subscription_button_html() : string {
          global $PAGE;
  
          $forumrecord = $this->forumrecord;
          $discussion = $this->discussion;
          $html = html_writer::div(
              forum_get_discussion_subscription_icon($forumrecord, $discussion->get_id(), null, true),
              'discussionsubscription'
          );
          $html .= forum_get_discussion_subscription_icon_preloaders();
          // Add the subscription toggle JS.
          $PAGE->requires->yui_module('moodle-mod_forum-subscriptiontoggle', 'Y.M.mod_forum.subscriptiontoggle.init');
          return $html;
      }
code_tokens: private function get_subscription_button_html ( ) : string { global $ PAGE ; $ forumrecord = $ this -> forumrecord ; $ discussion = $ this -> discussion ; $ html = html_writer :: div ( forum_get_discussion_subscription_icon ( $ forumrecord , $ discussion -> get_id ( ) , null , true ) , 'discussionsubscription' ) ; $ html .= forum_get_discussion_subscription_icon_preloaders ( ) ; // Add the subscription toggle JS. $ PAGE -> requires -> yui_module ( 'moodle-mod_forum-subscriptiontoggle' , 'Y.M.mod_forum.subscriptiontoggle.init' ) ; return $ html ; }
docstring: Get the HTML to render the subscription button.
  
  @return string
docstring_tokens: Get the HTML to render the subscription button .