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;
    }
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;
    }
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 ; }
Prepare the data for export.

@param   \renderer_base      $output     The output renderable.
@return  object
Prepare the data for export .