You are here

public function HeartbeatStreamRevisionRevertForm::__construct in Heartbeat 8

Constructs a new HeartbeatStreamRevisionRevertForm.

Parameters

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

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

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

File

src/Form/HeartbeatStreamRevisionRevertForm.php, line 50

Class

HeartbeatStreamRevisionRevertForm
Provides a form for reverting a Heartbeat stream revision.

Namespace

Drupal\heartbeat\Form

Code

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