public function HeartbeatRevisionRevertTranslationForm::__construct in Heartbeat 8
Constructs a new HeartbeatRevisionRevertTranslationForm.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The Heartbeat storage.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
Overrides HeartbeatRevisionRevertForm::__construct
File
- src/
Form/ HeartbeatRevisionRevertTranslationForm.php, line 44
Class
- HeartbeatRevisionRevertTranslationForm
- Provides a form for reverting a Heartbeat revision for a single translation.
Namespace
Drupal\heartbeat\FormCode
public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter, LanguageManagerInterface $language_manager) {
parent::__construct($entity_storage, $date_formatter);
$this->languageManager = $language_manager;
}