public function ShipmentForm::__construct in Commerce Shipping 8.2
Constructs a new ShipmentForm 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\commerce_shipping\PackageTypeManagerInterface $package_type_manager: The package type manager.
Overrides ContentEntityForm::__construct
File
- src/
Form/ ShipmentForm.php, line 43
Class
- ShipmentForm
- Defines the shipment add/edit form.
Namespace
Drupal\commerce_shipping\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, PackageTypeManagerInterface $package_type_manager) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->packageTypeManager = $package_type_manager;
}