Метод extractRestartContext
Сигнатура метода
private function extractRestartContext(Event $event, string $triggerCode): ?array
Возвращает:
?array
Описание
Reads the restart context out of the process-trigger event, but only for the dedicated restart trigger ($triggerCode === RESTART_TRIGGER_CODE) carrying a full EVENT-01 restart payload (runType = restart with a non-empty restartRunId). Returns null for every other event — both non-restart trigger codes and the restart code without a valid payload — so the start path of non-restart triggers is left untouched and no other event can borrow restart semantics.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$event
|
Event
|
—
|
—
|
$triggerCode
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Starter/AbstractProcessStarter.php
Расположение метода в файле
Строки
331–353