original_string: public function export_for_template(\renderer_base $output) {
          $result = (object) [
              'name'  => $this->tour->get_tour_key(),
              'steps' => [],
          ];
  
          foreach ($this->tour->get_steps() as $step) {
              $result->steps[] = (new step($step))->export_for_template($output);
          }
  
          return $result;
      }
code: public function export_for_template(\renderer_base $output) {
          $result = (object) [
              'name'  => $this->tour->get_tour_key(),
              'steps' => [],
          ];
  
          foreach ($this->tour->get_steps() as $step) {
              $result->steps[] = (new step($step))->export_for_template($output);
          }
  
          return $result;
      }
code_tokens: public function export_for_template ( \ renderer_base $ output ) { $ result = ( object ) [ 'name' => $ this -> tour -> get_tour_key ( ) , 'steps' => [ ] , ] ; foreach ( $ this -> tour -> get_steps ( ) as $ step ) { $ result -> steps [ ] = ( new step ( $ step ) ) -> export_for_template ( $ output ) ; } return $ result ; }
docstring: Prepare the data for export.
  
  @param   \renderer_base      $output     The output renderable.
  @return  object
docstring_tokens: Prepare the data for export .