You are here

public function HeartbeatRevisionRevertForm::__construct in Heartbeat 8

Constructs a new HeartbeatRevisionRevertForm.

Parameters

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

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

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

File

src/Form/HeartbeatRevisionRevertForm.php, line 50

Class

HeartbeatRevisionRevertForm
Provides a form for reverting a Heartbeat revision.

Namespace

Drupal\heartbeat\Form

Code

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