public function EventForm::__construct in Booking and Availability Management Tools for Drupal 8
Constructs a EventForm 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.
\Symfony\Component\HttpFoundation\Request $request: The current request.
Overrides ContentEntityForm::__construct
File
- modules/
bat_event/ src/ Entity/ Form/ EventForm.php, line 60 - Contains \Drupal\bat_event\Entity\Form\EventForm.
Class
- EventForm
- Form controller for Event edit forms.
Namespace
Drupal\bat_event\Entity\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, DateFormatterInterface $date_formatter, Request $request, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->dateFormatter = $date_formatter;
$this->request = $request;
}