• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/configuration/action/import.php
  • Класс: BitrixRestConfigurationActionImport
  • Вызов: Import::checkRegister
protected function checkRegister($data): array
{
	$result = [];

	if (
		!isset($data['MANIFEST']['CODE'])
		|| !Manifest::isRestImportAvailable($data['MANIFEST']['CODE'])
	)
	{
		$result = [
			'error' => static::ERROR_MANIFEST_IS_NOT_AVAILABLE,
			'error_description' => 'Manifest is not available.',
		];
	}

	return $result;
}