• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/configuration/notification.php
  • Класс: BitrixRestConfigurationNotification
  • Вызов: Notification::add
public function add($message, $code, $type): bool
{
	if (is_array($message))
	{
		foreach ($message as $mess)
		{
			$this->notificationList[] = [
				'code' => $code,
				'message' => $mess,
				'type' => $type,
			];
		}
	}
	else
	{
		$this->notificationList[] = [
			'code' => $code,
			'message' => $message,
			'type' => $type,
		];
	}

	return
		!$this->holdSaveToBase
		&& $this->setting->set(
			Setting::SETTING_NOTICE_COLLECTION,
			$this->notificationList
		);
}