public function OrderForm::__construct in Commerce Core 8.2
Constructs a new OrderForm object.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.
\Drupal\Component\Datetime\TimeInterface $time: The time.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.
Overrides ContentEntityForm::__construct
File
- modules/
order/ src/ Form/ OrderForm.php, line 37
Class
- OrderForm
- Form controller for the commerce_order entity edit forms.
Namespace
Drupal\commerce_order\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, DateFormatterInterface $date_formatter) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->dateFormatter = $date_formatter;
}