protected function Test3::rebuild in Coder 8.2
Parameters described by reference are OK.
Parameters
Drupal\Core\Form\FormStateInterface $form_state: The form state.
array &$old_form: The old form build.
Return value
array The newly built form.
1 call to Test3::rebuild()
- Test3::removeQueueItem in coder_sniffer/
Drupal/ Test/ good/ good.php - Parameters described by reference are OK.
File
- coder_sniffer/
Drupal/ Test/ good/ good.php, line 1613 - This file contains all the valid notations for the drupal coding standard.
Class
- Test3
- Another test.
Code
protected function rebuild(FormStateInterface $form_state, array &$old_form) {
$form_state
->setRebuild();
$form = $this->formBuilder
->rebuildForm($this
->getFormId(), $form_state, $old_form);
return $form;
}