method public static

ByPrice::getParamsStructure()

Класс: \Bitrix\Sale\Delivery\Restrictions\ByPrice

Сигнатура

public static getParamsStructure([mixed $entityId = 0 ]) : array<string|int, mixed>

Описание

Возвращает структуру параметров для отображения пользователю

Параметры

$entityId mixed = 0

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

array<string|int, mixed>

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

ByPrice::getParamsStructure() — метод класса \Bitrix\Sale\Delivery\Restrictions\ByPrice модуля «Интернет-магазин». ByPrice: Класс ByWeight Ограничивает доставку по весу.

Статический метод — вызывается через имя класса ByPrice, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\Sale\Delivery\Restrictions\ByPrice;

Loader::includeModule('sale');

$result = ByPrice::getParamsStructure();
// $result: array<string|int, mixed>

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

getParamsStructure() есть и у других классов модуля «Интернет-магазин»: Base, Base, ByConcreteProduct, ByDimensions, ByLocation, ByMaxSize, ByPaySystem, ByPersonType.

Исходный файл: source/sale/lib/delivery/restrictions/byprice.php:89

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