public function RevisionRevertForm::__construct in Entity API 8
Same name and namespace in other branches
- 8.0 src/Form/RevisionRevertForm.php \Drupal\entity\Form\RevisionRevertForm::__construct()
Creates a new RevisionRevertForm instance.
Parameters
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_information: The bundle information.
File
- src/
Form/ RevisionRevertForm.php, line 45
Class
Namespace
Drupal\entity\FormCode
public function __construct(DateFormatterInterface $date_formatter, EntityTypeBundleInfoInterface $bundle_information) {
$this->dateFormatter = $date_formatter;
$this->bundleInformation = $bundle_information;
}