original_string: public function export_for_template(\renderer_base $output) {
          global $PAGE;
          $step = $this->step;
  
          $result = (object) [
              'stepid'    => $step->get_id(),
              'title'     => external_format_text(
                      stepsource::get_string_from_input($step->get_title()),
                      FORMAT_HTML,
                      $PAGE->context->id,
                      'tool_usertours'
                  )[0],
              'content'   => external_format_text(
                      stepsource::get_string_from_input($step->get_content()),
                      FORMAT_HTML,
                      $PAGE->context->id,
                      'tool_usertours'
                  )[0],
              'element'   => $step->get_target()->convert_to_css(),
          ];
  
          $result->content = str_replace("\n", "<br>\n", $result->content);
  
          foreach ($step->get_config_keys() as $key) {
              $result->$key = $step->get_config($key);
          }
  
          return $result;
      }
code: public function export_for_template(\renderer_base $output) {
          global $PAGE;
          $step = $this->step;
  
          $result = (object) [
              'stepid'    => $step->get_id(),
              'title'     => external_format_text(
                      stepsource::get_string_from_input($step->get_title()),
                      FORMAT_HTML,
                      $PAGE->context->id,
                      'tool_usertours'
                  )[0],
              'content'   => external_format_text(
                      stepsource::get_string_from_input($step->get_content()),
                      FORMAT_HTML,
                      $PAGE->context->id,
                      'tool_usertours'
                  )[0],
              'element'   => $step->get_target()->convert_to_css(),
          ];
  
          $result->content = str_replace("\n", "<br>\n", $result->content);
  
          foreach ($step->get_config_keys() as $key) {
              $result->$key = $step->get_config($key);
          }
  
          return $result;
      }
code_tokens: public function export_for_template ( \ renderer_base $ output ) { global $ PAGE ; $ step = $ this -> step ; $ result = ( object ) [ 'stepid' => $ step -> get_id ( ) , 'title' => external_format_text ( stepsource :: get_string_from_input ( $ step -> get_title ( ) ) , FORMAT_HTML , $ PAGE -> context -> id , 'tool_usertours' ) [ 0 ] , 'content' => external_format_text ( stepsource :: get_string_from_input ( $ step -> get_content ( ) ) , FORMAT_HTML , $ PAGE -> context -> id , 'tool_usertours' ) [ 0 ] , 'element' => $ step -> get_target ( ) -> convert_to_css ( ) , ] ; $ result -> content = str_replace ( "\n" , "<br>\n" , $ result -> content ) ; foreach ( $ step -> get_config_keys ( ) as $ key ) { $ result -> $ key = $ step -> get_config ( $ key ) ; } return $ result ; }
docstring: Export the step configuration.
  
  @param   renderer_base   $output     The renderer.
  @return  object
docstring_tokens: Export the step configuration .