public function ContactFormRevisionsOverviewForm::buildForm in Config Entity Revisions 8.2
Generates an overview table of older revisions of a config entity.
Parameters
array $form: A form being built.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
\Drupal\Core\Config\Entity\ConfigEntityInterface $configEntity: A configuration entity.
Return value
array An array as expected by \Drupal\Core\Render\RendererInterface::render().
Throws
\Drupal\Core\Entity\EntityMalformedException
Overrides ConfigEntityRevisionsOverviewFormBase::buildForm
File
- modules/
contact_form_revisions/ src/ Form/ ContactFormRevisionsOverviewForm.php, line 20
Class
- ContactFormRevisionsOverviewForm
- Provides a form for reverting a contact_form_revisions revision.
Namespace
Drupal\contact_form_revisions\FormCode
public function buildForm(array $form, FormStateInterface $form_state, ConfigEntityInterface $contact_form = NULL) {
return parent::buildForm($form, $form_state, $contact_form);
}