You are here

ContactFormRevisionsDeleteForm.php in Config Entity Revisions 8.2

File

modules/contact_form_revisions/src/Form/ContactFormRevisionsDeleteForm.php
View source
<?php

namespace Drupal\contact_form_revisions\Form;

use Drupal\config_entity_revisions\ConfigEntityRevisionsDeleteFormBase;
use Drupal\contact_form_revisions\Controller\ContactFormRevisionsController;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Provides a form for reverting a ContactFormRevisions revision.
 *
 * @internal
 */
class ContactFormRevisionsDeleteForm extends ConfigEntityRevisionsDeleteFormBase {

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container) {
    $entity_manager = $container
      ->get('entity_type.manager');
    return new static($entity_manager
      ->getStorage('config_entity_revisions'), $container
      ->get('database'), $container
      ->get('date.formatter'), ContactFormRevisionsController::create($container));
  }

}

Classes

Namesort descending Description
ContactFormRevisionsDeleteForm Provides a form for reverting a ContactFormRevisions revision.