You are here

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

Constructs a UnitForm 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_unit/src/Entity/Form/UnitForm.php, line 45
Contains \Drupal\bat_unit\Entity\Form\UnitForm.

Class

UnitForm
Form controller for Unit edit forms.

Namespace

Drupal\bat_unit\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;
}