public function PriceListForm::__construct in Commerce Pricelist 8
Constructs a ContentEntityForm object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.
Overrides ContentEntityForm::__construct
File
- src/
Form/ PriceListForm.php, line 51
Class
- PriceListForm
- Form controller for Price list edit forms.
Namespace
Drupal\commerce_pricelist\FormCode
public function __construct(EntityManagerInterface $entity_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, MessengerInterface $messenger, DateFormatterInterface $date_formatter) {
parent::__construct($entity_manager, $entity_type_bundle_info, $time);
$this->messenger = $messenger;
$this->dateFormatter = $date_formatter;
}