method public

EmptyDeliveryService::getAdditionalInfoShipmentView()

Класс: \Bitrix\Sale\Delivery\Services\EmptyDeliveryService

Сигнатура

public getAdditionalInfoShipmentView(Shipment $shipment) : array<string|int, mixed>

Параметры

$shipment Shipment

Возвращаемое значение

array<string|int, mixed>

Как применяется в EmptyDeliveryService

EmptyDeliveryService::getAdditionalInfoShipmentView() — метод класса \Bitrix\Sale\Delivery\Services\EmptyDeliveryService модуля «Интернет-магазин».

Метод объекта: сначала нужен экземпляр EmptyDeliveryService.

use Bitrix\Main\Loader;
use Bitrix\Sale\Delivery\Services\EmptyDeliveryService;

Loader::includeModule('sale');

/** @var EmptyDeliveryService $object */
$shipment = null; // Shipment
$result = $object->getAdditionalInfoShipmentView($shipment);
// $result: array<string|int, mixed>

Другие методы EmptyDeliveryService

getAdditionalInfoShipmentView() есть и у других классов модуля «Интернет-магазин»: Automatic, AutomaticProfile, Base, Configurable, Group.

Исходный файл: source/sale/lib/delivery/services/emptydeliveryservice.php:822

Что будем искать? Например,Продвижение