public function MediaRevisionDeleteForm::buildForm in Media Revisions UI 8
Same name and namespace in other branches
- 2.0.x src/Form/MediaRevisionDeleteForm.php \Drupal\media_revisions_ui\Form\MediaRevisionDeleteForm::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/ MediaRevisionDeleteForm.php, line 100
Class
- MediaRevisionDeleteForm
- Provides a form for reverting media revision.
Namespace
Drupal\media_revisions_ui\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $media_revision = NULL) {
$this->revision = $this->mediaStorage
->loadRevision($media_revision);
$form = parent::buildForm($form, $form_state);
return $form;
}