Метод loadCustomTemplateAction

public

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

public function loadCustomTemplateAction(CurrentUser $currentUser, string $scene, string $targetId): ?array

Возвращает: ?array

Описание

AJAX entry point used by the CRM-flavoured custom-template form. Module-wide CRM permission is enforced by this controller's `canSendFromSomeItemsInCrmOrAutomatedSolutions` prefilter (see {@see self::getDefaultPreFilters()}); on top of it this action runs the fine-grained per-binding gate ({@see CrmZoneProvider::canReadTemplates()}) before resolving the binding description, mirroring the same gate that guards the messageservice CUD handlers. Errors are surfaced through `addError(...)` so the JS client gets the standard `{ errors: [...] }` envelope.

Параметры

3
Имя Тип По умолчанию Флаги
$currentUser CurrentUser —
—
$scene string —
—
$targetId string —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/controller/messagesender/editor.php
Расположение метода в файле
Строки 99–145

Исходный код

PHP