6 declare(strict_types=1);
24 public function afterGetList(
25 \
Magento\Sales\Api\ShipmentRepositoryInterface $shipmentRepository,
26 \
Magento\Sales\Api\Data\ShipmentSearchResultInterface $searchResult
29 foreach ($searchResult->getItems() as
$item) {
30 if (
$item->getShippingLabel() !==
null) {
31 $item->setShippingLabel(base64_encode(
$item->getShippingLabel()));
47 \
Magento\Sales\Api\ShipmentRepositoryInterface $shipmentRepository,
50 if (
$shipment->getShippingLabel() !==
null) {
afterGet(\Magento\Sales\Api\ShipmentRepositoryInterface $shipmentRepository, \Magento\Sales\Api\Data\ShipmentInterface $shipment)
foreach($order->getItems() as $orderItem) $shipment