public function LibraryItemRevisionRevertForm::buildForm

File

paragraphs/modules/paragraphs_library/src/Form/LibraryItemRevisionRevertForm.php, line 140

Class

LibraryItemRevisionRevertForm

Namespace

Drupal\paragraphs_library\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $paragraphs_library_item_revision = NULL) {
  $this->revision = $this->entityTypeManager
    ->getStorage('paragraphs_library_item')
    ->loadRevision($paragraphs_library_item_revision);
  return parent::buildForm($form, $form_state);
}