You are here

public function SimpleMegaMenuRevisionRevertForm::__construct in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x src/Form/SimpleMegaMenuRevisionRevertForm.php \Drupal\simple_megamenu\Form\SimpleMegaMenuRevisionRevertForm::__construct()

Constructs a new SimpleMegaMenuRevisionRevertForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The Simple mega menu storage.

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

\Drupal\Component\Datetime\Time $time: The time service.

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

File

src/Form/SimpleMegaMenuRevisionRevertForm.php, line 59

Class

SimpleMegaMenuRevisionRevertForm
Provides a form for reverting a Simple mega menu revision.

Namespace

Drupal\simple_megamenu\Form

Code

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