function RevisionRevertForm::__construct
Same name in other branches
- 10 core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php \Drupal\Core\Entity\Form\RevisionRevertForm::__construct()
Creates a new RevisionRevertForm instance.
Parameters
\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: The date formatter.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInformation: The bundle information.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
\Drupal\Core\Session\AccountInterface $currentUser: The current user.
File
-
core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionRevertForm.php, line 72
Class
- RevisionRevertForm
- Provides a form for reverting an entity revision.
Namespace
Drupal\Core\Entity\FormCode
public function __construct(DateFormatterInterface $dateFormatter, EntityTypeBundleInfoInterface $bundleInformation, MessengerInterface $messenger, TimeInterface $time, AccountInterface $currentUser) {
$this->messenger = $messenger;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.