public function FlagResetForm::buildForm in Flag 8.4
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfirmFormBase::buildForm
File
- src/
Form/ FlagResetForm.php, line 52
Class
- FlagResetForm
- Provides the flag reset form.
Namespace
Drupal\flag\FormCode
public function buildForm(array $form, FormStateInterface $form_state, FlagInterface $flag = NULL) {
$this->flag = $flag;
return parent::buildForm($form, $form_state);
}