public function FlaggingCollectionRevisionDeleteForm::buildForm in Flag Lists 8
Same name and namespace in other branches
- 4.0.x src/Form/FlaggingCollectionRevisionDeleteForm.php \Drupal\flag_lists\Form\FlaggingCollectionRevisionDeleteForm::buildForm()
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/ FlaggingCollectionRevisionDeleteForm.php, line 96
Class
- FlaggingCollectionRevisionDeleteForm
- Provides a form for deleting a Flagging collection revision.
Namespace
Drupal\flag_lists\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $flagging_collection_revision = NULL) {
$this->revision = $this->flaggingCollectionStorage
->loadRevision($flagging_collection_revision);
$form = parent::buildForm($form, $form_state);
return $form;
}