original_string: public function export_for_template(\renderer_base $output) {
          $value = $this->get_value();
          return (object)[
              'value' => $value,
              'type' => $this->get_type(),
              'shortname' => $this->get_shortname(),
              'name' => $this->get_name(),
              'hasvalue' => ($value !== null),
              'instanceid' => $this->data->get('instanceid')
          ];
      }
code: public function export_for_template(\renderer_base $output) {
          $value = $this->get_value();
          return (object)[
              'value' => $value,
              'type' => $this->get_type(),
              'shortname' => $this->get_shortname(),
              'name' => $this->get_name(),
              'hasvalue' => ($value !== null),
              'instanceid' => $this->data->get('instanceid')
          ];
      }
code_tokens: public function export_for_template ( \ renderer_base $ output ) { $ value = $ this -> get_value ( ) ; return ( object ) [ 'value' => $ value , 'type' => $ this -> get_type ( ) , 'shortname' => $ this -> get_shortname ( ) , 'name' => $ this -> get_name ( ) , 'hasvalue' => ( $ value !== null ) , 'instanceid' => $ this -> data -> get ( 'instanceid' ) ] ; }
docstring: Export data for using as template context.
  
  @param \renderer_base $output
  @return \stdClass
docstring_tokens: Export data for using as template context .