You are here

public function RevisionRevertForm::__construct in Entity API 8.0

Same name and namespace in other branches
  1. 8 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 50
Contains \Drupal\entity\Form\RevisionRevertForm.

Class

RevisionRevertForm

Namespace

Drupal\entity\Form

Code

public function __construct(DateFormatterInterface $date_formatter, EntityTypeBundleInfoInterface $bundle_information) {
  $this->dateFormatter = $date_formatter;
  $this->bundleInformation = $bundle_information;
}