public function MediaRevisionRevertForm::__construct in Media Revisions UI 8
Same name and namespace in other branches
- 2.0.x src/Form/MediaRevisionRevertForm.php \Drupal\media_revisions_ui\Form\MediaRevisionRevertForm::__construct()
Constructs a new MediaRevisionRevertForm.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $media_storage: The media storage service.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
1 call to MediaRevisionRevertForm::__construct()
- MediaRevisionRevertTranslationForm::__construct in src/
Form/ MediaRevisionRevertTranslationForm.php - Constructs a new MediaRevisionRevertTranslationForm.
1 method overrides MediaRevisionRevertForm::__construct()
- MediaRevisionRevertTranslationForm::__construct in src/
Form/ MediaRevisionRevertTranslationForm.php - Constructs a new MediaRevisionRevertTranslationForm.
File
- src/
Form/ MediaRevisionRevertForm.php, line 57
Class
- MediaRevisionRevertForm
- Provides a form for reverting media revision.
Namespace
Drupal\media_revisions_ui\FormCode
public function __construct(EntityStorageInterface $media_storage, DateFormatterInterface $date_formatter, TimeInterface $time) {
$this->mediaStorage = $media_storage;
$this->dateFormatter = $date_formatter;
$this->time = $time;
}