You are here

public function InvoiceForm::__construct in Commerce Invoice 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

src/Form/InvoiceForm.php, line 37

Class

InvoiceForm
Form controller for the commerce_invoice entity edit forms.

Namespace

Drupal\commerce_invoice\Form

Code

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;
}