public function FlaggingCollectionRevisionRevertForm::buildForm in Flag Lists 4.0.x
Same name and namespace in other branches
- 8 src/Form/FlaggingCollectionRevisionRevertForm.php \Drupal\flag_lists\Form\FlaggingCollectionRevisionRevertForm::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
1 call to FlaggingCollectionRevisionRevertForm::buildForm()
- FlaggingCollectionRevisionRevertTranslationForm::buildForm in src/
Form/ FlaggingCollectionRevisionRevertTranslationForm.php - Form constructor.
1 method overrides FlaggingCollectionRevisionRevertForm::buildForm()
- FlaggingCollectionRevisionRevertTranslationForm::buildForm in src/
Form/ FlaggingCollectionRevisionRevertTranslationForm.php - Form constructor.
File
- src/
Form/ FlaggingCollectionRevisionRevertForm.php, line 103
Class
- FlaggingCollectionRevisionRevertForm
- Provides a form for reverting 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;
}