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