public function ShipmentTypeForm::__construct in Commerce Shipping 8.2
Constructs a new ShipmentTypeForm object.
Parameters
\Drupal\commerce\EntityTraitManagerInterface $trait_manager: The entity trait manager.
\Drupal\commerce_order\AddressBookInterface $address_book: The address book.
Overrides CommerceBundleEntityFormBase::__construct
File
- src/
Form/ ShipmentTypeForm.php, line 30
Class
Namespace
Drupal\commerce_shipping\FormCode
public function __construct(EntityTraitManagerInterface $trait_manager, AddressBookInterface $address_book) {
parent::__construct($trait_manager);
$this->addressBook = $address_book;
}