Метод getLegacyOptions
Сигнатура метода
public function getLegacyOptions(): array
Возвращает:
array
Описание
The option array as the caller of a legacy entry point gave it, and an empty set for an operation that came from anywhere else. THE ONE READER OF IT IS THE WRAPPER OF A LEGACY PROVIDER - nothing of V2 may take a decision by it, and everything of V2 asks the typed rows above instead. IT IS AN OPEN SET AND THAT IS WHY IT TRAVELS WHOLE, the same reason the fields a legacy provider invents travel whole ({@see \Bitrix\Crm\V2\Internal\Service\Activity\Pipeline\PipelineContext ::RUN_VALUE_UNCARRIED_PROVIDER_FIELDS}). Legacy hands its providers the very array it was given (crm_activity.php:1018, :1496), and the keys they read out of it are their own business: the provider of tasks decides by `SKIP_SUBJECT`, `SKIP_RESPONSIBLE_CHANGE` and `SKIP_RENEW`, the one of generated documents by `IS_ERASING_FROM_RECYCLE_BIN` - none of which is a key of the closed projection above, because no rule of the domain reads any of them. A projection narrowed to the keys V2 knows silently changed what those providers do, which is what this row exists to stop; inventing a typed row per key of a provider would be inventing a contract no provider agreed to.
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Service/Activity/ActivityOperationContext.php