public function MediaRevisionRevertTranslationForm::__construct in Media Revisions UI 8
Same name and namespace in other branches
- 2.0.x src/Form/MediaRevisionRevertTranslationForm.php \Drupal\media_revisions_ui\Form\MediaRevisionRevertTranslationForm::__construct()
Constructs a new MediaRevisionRevertTranslationForm.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $media_storage: The media storage service.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Overrides MediaRevisionRevertForm::__construct
File
- src/
Form/ MediaRevisionRevertTranslationForm.php, line 44
Class
- MediaRevisionRevertTranslationForm
- Provides a form for reverting media revision for a single translation.
Namespace
Drupal\media_revisions_ui\FormCode
public function __construct(EntityStorageInterface $media_storage, DateFormatterInterface $date_formatter, LanguageManagerInterface $language_manager, TimeInterface $time) {
parent::__construct($media_storage, $date_formatter, $time);
$this->languageManager = $language_manager;
}