You are here

public function ScheduleRevisionRevertTranslationForm::__construct in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Form/ScheduleRevisionRevertTranslationForm.php \Drupal\business_rules\Form\ScheduleRevisionRevertTranslationForm::__construct()

Constructs a new ScheduleRevisionRevertTranslationForm.

Parameters

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

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides ScheduleRevisionRevertForm::__construct

File

src/Form/ScheduleRevisionRevertTranslationForm.php, line 44

Class

ScheduleRevisionRevertTranslationForm
Provides a form for reverting a Schedule revision for a single translation.

Namespace

Drupal\business_rules\Form

Code

public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter, LanguageManagerInterface $language_manager) {
  parent::__construct($entity_storage, $date_formatter);
  $this->languageManager = $language_manager;
}