original_string: public function definition() {
          $mform = $this->_form;
  
          $this->definition_inner($mform);
  
          $mform->addElement('hidden', 'contextid');
          $mform->setType('contextid', PARAM_INT);
          $mform->setDefault('contextid', $this->context->id);
  
          $mform->addElement('hidden', 'filter');
          $mform->setType('filter', PARAM_SAFEPATH);
          $mform->setDefault('filter', $this->filter);
  
          $this->add_action_buttons();
      }
code: public function definition() {
          $mform = $this->_form;
  
          $this->definition_inner($mform);
  
          $mform->addElement('hidden', 'contextid');
          $mform->setType('contextid', PARAM_INT);
          $mform->setDefault('contextid', $this->context->id);
  
          $mform->addElement('hidden', 'filter');
          $mform->setType('filter', PARAM_SAFEPATH);
          $mform->setDefault('filter', $this->filter);
  
          $this->add_action_buttons();
      }
code_tokens: public function definition ( ) { $ mform = $ this -> _form ; $ this -> definition_inner ( $ mform ) ; $ mform -> addElement ( 'hidden' , 'contextid' ) ; $ mform -> setType ( 'contextid' , PARAM_INT ) ; $ mform -> setDefault ( 'contextid' , $ this -> context -> id ) ; $ mform -> addElement ( 'hidden' , 'filter' ) ; $ mform -> setType ( 'filter' , PARAM_SAFEPATH ) ; $ mform -> setDefault ( 'filter' , $ this -> filter ) ; $ this -> add_action_buttons ( ) ; }
docstring: Build the form definition. Rather than overriding this method, you
  should probably override definition_inner instead.
  
  This method adds the necessary hidden fields and submit buttons,
  and calls definition_inner to insert the custom controls in the appropriate place.
docstring_tokens: Build the form definition . Rather than overriding this method you should probably override definition_inner instead .