You are here

public function BookingForm::__construct in Booking and Availability Management Tools for Drupal 8

Constructs a BookingForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides ContentEntityForm::__construct

File

modules/bat_booking/src/Entity/Form/BookingForm.php, line 45
Contains \Drupal\bat_booking\Entity\Form\BookingForm.

Class

BookingForm
Form controller for Unit type edit forms.

Namespace

Drupal\bat_booking\Entity\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, DateFormatterInterface $date_formatter, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->dateFormatter = $date_formatter;
}