You are here

public function EventRevisionRevertForm::__construct in Event 8

Constructs a new EventRevisionRevertForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The Event storage.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

1 call to EventRevisionRevertForm::__construct()
EventRevisionRevertTranslationForm::__construct in src/Form/EventRevisionRevertTranslationForm.php
Constructs a new EventRevisionRevertTranslationForm.
1 method overrides EventRevisionRevertForm::__construct()
EventRevisionRevertTranslationForm::__construct in src/Form/EventRevisionRevertTranslationForm.php
Constructs a new EventRevisionRevertTranslationForm.

File

src/Form/EventRevisionRevertForm.php, line 51

Class

EventRevisionRevertForm
Provides a form for reverting a Event revision.

Namespace

Drupal\event\Form

Code

public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter) {
  $this->eventStorage = $entity_storage;
  $this->dateFormatter = $date_formatter;
}