original_string: public function setup_page_for_filters($page, $context) {
          $filters = $this->get_text_filters($context);
          foreach ($filters as $filter) {
              $filter->setup($page, $context);
          }
      }
code: public function setup_page_for_filters($page, $context) {
          $filters = $this->get_text_filters($context);
          foreach ($filters as $filter) {
              $filter->setup($page, $context);
          }
      }
code_tokens: public function setup_page_for_filters ( $ page , $ context ) { $ filters = $ this -> get_text_filters ( $ context ) ; foreach ( $ filters as $ filter ) { $ filter -> setup ( $ page , $ context ) ; } }
docstring: Setup page with filters requirements and other prepare stuff.
  
  This method is used by {@see format_text()} and {@see format_string()}
  in order to allow filters to setup any page requirement (js, css...)
  or perform any action needed to get them prepared before filtering itself
  happens by calling to each every active setup() method.
  
  Note it's executed for each piece of text filtered, so filter implementations
  are responsible of controlling the cardinality of the executions that may
  be different depending of the stuff to prepare.
  
  @param moodle_page $page the page we are going to add requirements to.
  @param context $context the context which contents are going to be filtered.
  @since Moodle 2.3
docstring_tokens: Setup page with filters requirements and other prepare stuff .