Skip to content
Snippets Groups Projects

D11 compatiblity

Files

@@ -2,17 +2,13 @@
namespace Drupal\commerce_swiss_post\Controller;
use Drupal\commerce_order\Entity\OrderInterface;
use Drupal\commerce_shipping\Entity\Shipment;
use Drupal\commerce_shipping\Entity\ShipmentInterface;
use Drupal\commerce_swiss_post\LabelGeneratorInterface;
use Drupal\commerce_swiss_post\Plugin\Commerce\ShippingMethod\SwissPost;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Access\AccessResult;
use Drupal\entity_print\PrintBuilderInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\StreamedResponse;
/**
* Print controller.
@@ -43,7 +39,7 @@ class CommerceSwissPostLabelController extends ControllerBase {
}
/**
* Generate label for a commerce_shipment entity
* Generate label for a commerce_shipment entity.
*
* @param \Drupal\commerce_shipping\Entity\ShipmentInterface $commerce_shipment
* The shipment.
Loading