Configurable::emitRestEventAction

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Configurable
  4. emitRestEventAction
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/activity/configurable.php
  • Класс: Bitrix\Crm\Controller\Activity\Configurable
  • Вызов: Configurable::emitRestEventAction
public function emitRestEventAction(string $signedParams): void
{
	if ($this->getScope() !== static::SCOPE_AJAX)
	{
		$this->addError(new Error('Rest scope is not supported', 'WRONG_SCOPE'));

		return;
	}
	$result = \Bitrix\Crm\Activity\Entity\ConfigurableRestApp\EventHandler::emitEvent($signedParams);
	if (!$result->isSuccess())
	{
		$this->addErrors($result->getErrors());
	}
}

Добавить комментарий