public function PetRevisionRevertForm::__construct in Previewable email templates 8.3
Constructs a new PetRevisionRevertForm.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The Pet storage.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
1 call to PetRevisionRevertForm::__construct()
- PetRevisionRevertTranslationForm::__construct in src/
Form/ PetRevisionRevertTranslationForm.php - Constructs a new PetRevisionRevertTranslationForm.
1 method overrides PetRevisionRevertForm::__construct()
- PetRevisionRevertTranslationForm::__construct in src/
Form/ PetRevisionRevertTranslationForm.php - Constructs a new PetRevisionRevertTranslationForm.
File
- src/
Form/ PetRevisionRevertForm.php, line 50
Class
- PetRevisionRevertForm
- Provides a form for reverting a Pet revision.
Namespace
Drupal\pet\FormCode
public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter) {
$this->petStorage = $entity_storage;
$this->dateFormatter = $date_formatter;
}