You are here

public function DefaultPacker::__construct in Commerce Shipping 8.2

Constructs a new DefaultPacker object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/Packer/DefaultPacker.php, line 38

Class

DefaultPacker
Creates a single shipment per order.

Namespace

Drupal\commerce_shipping\Packer

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $string_translation;
}