You are here

public function HeartbeatStreamRevisionRevertTranslationForm::__construct in Heartbeat 8

Constructs a new HeartbeatStreamRevisionRevertTranslationForm.

Parameters

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

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

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

Overrides HeartbeatStreamRevisionRevertForm::__construct

File

src/Form/HeartbeatStreamRevisionRevertTranslationForm.php, line 44

Class

HeartbeatStreamRevisionRevertTranslationForm
Provides a form for reverting a Heartbeat stream revision for a single translation.

Namespace

Drupal\heartbeat\Form

Code

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