public function TypeGroupForm::__construct in Booking and Availability Management Tools for Drupal 8
Constructs a TypeGroupForm 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
- src/
Entity/ Form/ TypeGroupForm.php, line 46 - Contains \Drupal\bat\Entity\Form\TypeGroupForm.
Class
- TypeGroupForm
- Form controller for Type Group edit forms.
Namespace
Drupal\bat\Entity\FormCode
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;
}