original_string: public function instance_form_definition_after_data(\MoodleQuickForm $mform, int $instanceid = 0) {
          $editablefields = $this->get_editable_fields($instanceid);
          $fields = api::get_instance_fields_data($editablefields, $instanceid);
  
          foreach ($fields as $formfield) {
              $formfield->instance_form_definition_after_data($mform);
          }
      }
code: public function instance_form_definition_after_data(\MoodleQuickForm $mform, int $instanceid = 0) {
          $editablefields = $this->get_editable_fields($instanceid);
          $fields = api::get_instance_fields_data($editablefields, $instanceid);
  
          foreach ($fields as $formfield) {
              $formfield->instance_form_definition_after_data($mform);
          }
      }
code_tokens: public function instance_form_definition_after_data ( \ MoodleQuickForm $ mform , int $ instanceid = 0 ) { $ editablefields = $ this -> get_editable_fields ( $ instanceid ) ; $ fields = api :: get_instance_fields_data ( $ editablefields , $ instanceid ) ; foreach ( $ fields as $ formfield ) { $ formfield -> instance_form_definition_after_data ( $ mform ) ; } }
docstring: Form data definition callback.
  
  This method is called from moodleform::definition_after_data and allows to tweak
  mform with some data coming directly from the field plugin data controller.
  
  @param \MoodleQuickForm $mform
  @param int $instanceid
docstring_tokens: Form data definition callback .