public function SimpleMegaMenuRevisionRevertTranslationForm::__construct in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/Form/SimpleMegaMenuRevisionRevertTranslationForm.php \Drupal\simple_megamenu\Form\SimpleMegaMenuRevisionRevertTranslationForm::__construct()
Constructs a new SimpleMegaMenuRevisionRevertTranslationForm.
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.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
Overrides SimpleMegaMenuRevisionRevertForm::__construct
File
- src/
Form/ SimpleMegaMenuRevisionRevertTranslationForm.php, line 46
Class
- SimpleMegaMenuRevisionRevertTranslationForm
- Provides a form for reverting a megamenu revision for a single translation.
Namespace
Drupal\simple_megamenu\FormCode
public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter, Time $time, LanguageManagerInterface $language_manager) {
parent::__construct($entity_storage, $date_formatter, $time);
$this->languageManager = $language_manager;
}