• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/sender/webhook/messagewebhook.php
  • Класс: Bitrix\Sender\Integration\Sender\WebHook\MessageWebHook
  • Вызов: MessageWebHook::loadConfiguration
public function loadConfiguration($id = null)
{
	$configuration = new Message\Configuration();
	$configuration->setArrayOptions(array(
		array(
			'type' => 'string',
			'code' => 'URI',
			'name' => Loc::getMessage('SENDER_INTEGRATION_WEBHOOK_MESSAGE_CONFIG_URI'),
			'required' => true,
		),
	));

	return Entity\Message::create()
		->setCode($this->getCode())
		->loadConfiguration($id, $configuration);
}