Метод getDeferredMessage

private

Сигнатура метода

private function getDeferredMessage(): LocalizableMessage

Возвращает: LocalizableMessage

Описание

The phrase of the refusal, left to be resolved when it is published rather than when it is reported: a client of REST names the language of its answer, and the transport localizes the message of an error only for as long as it is still a phrase ({@see \Bitrix\Rest\V3\Exception\Validation\ValidationException::output()}). A text resolved here would reach every client in the language of the portal instead, and the three languages the product ships would never be read at all. The file is named rather than guessed: {@see LocalizableMessage} takes the file of its caller for the owner of the phrase, and every caller of this vocabulary is somewhere else.

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Entity/Dictionary/DictionaryError.php
Расположение метода в файле
Строки 80–83

Исходный код

PHP