- Модуль: ui
- Путь к файлу: ~/bitrix/modules/ui/lib/Integration/Rest/ExportStep.php
- Класс: BitrixUIIntegrationRestExportStep
- Вызов: ExportStep::makeAnAnswer
public function makeAnAnswer(): ?array
{
return [
'FILE_NAME' =>
implode('_',
[
(new ReflectionClass(static::class))->getShortName(),
$this->entityCode,
$this->entityId,
$this->stepNumber
]
),
'CONTENT' => $this->data->toArray(),
'FILES' => $this->files->toArray(),
'NEXT' => $this->nextStep->count() <= 0
? false : json_encode($this->nextStep->toArray()),
] + (($error = $this->errorCollection->current()) ? [
'ERROR_MESSAGE' => $error->getMessage(),
'ERROR_ACTION' => $error->getCode(),
] : []);
}