• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/document/onlyoffice/configuration.php
  • Класс: BitrixDiskDocumentOnlyOfficeConfiguration
  • Вызов: Configuration::getSecretKey
public function getSecretKey(): ?string
{
	if ($this->secretKey === null)
	{
		$cloudData = $this->getCloudRegistrationData();
		if (isset($cloudData['secretKey']) && $cloudData['secretKey'])
		{
			$this->secretKey = $cloudData['secretKey'];
		}
		else
		{
			$this->secretKey = $this->getValue('secret_key', 'disk_onlyoffice_secret_key');
		}
	}

	return $this->secretKey;
}