You are here

public function ScheduleRevisionRevertForm::__construct in Business Rules 8

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

Constructs a new ScheduleRevisionRevertForm.

Parameters

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

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

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

File

src/Form/ScheduleRevisionRevertForm.php, line 50

Class

ScheduleRevisionRevertForm
Provides a form for reverting a Schedule revision.

Namespace

Drupal\business_rules\Form

Code

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