• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/engine/access/holdentity.php
  • Класс: BitrixRestEngineAccessHoldEntity
  • Вызов: HoldEntity::set
static function set(array $data) : bool
{
	if (!empty($data))
	{
		Option::set(static::MODULE_ID, static::OPTION_CODE, Json::encode($data));
	}
	else
	{
		Option::delete(static::MODULE_ID, ['name' => static::OPTION_CODE]);
		Notification::reset();
	}

	return true;
}