public function PetRevisionRevertForm::buildForm in Previewable email templates 8.3
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 PetRevisionRevertForm::buildForm()
- PetRevisionRevertTranslationForm::buildForm in src/
Form/ PetRevisionRevertTranslationForm.php - Form constructor.
1 method overrides PetRevisionRevertForm::buildForm()
- PetRevisionRevertTranslationForm::buildForm in src/
Form/ PetRevisionRevertTranslationForm.php - Form constructor.
File
- src/
Form/ PetRevisionRevertForm.php, line 103
Class
- PetRevisionRevertForm
- Provides a form for reverting a Pet revision.
Namespace
Drupal\pet\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $pet_revision = NULL) {
$this->revision = $this->petStorage
->loadRevision($pet_revision);
$form = parent::buildForm($form, $form_state);
return $form;
}