Files

35 lines
957 B
PHP

<?php
declare(strict_types=1);
namespace OCA\Speedtest\Settings;
use OCA\Speedtest\AppInfo\Application;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\Settings\ISettings;
use OCP\Util;
/**
* Lives under Settings -> Personal, not in the app menu.
*
* It is a utility, not a destination: nobody opens a speedtest the way they
* open Files or Mail. The app menu is for places you go; settings is for
* things you check. (operator decision, 2026-08-06.)
*/
class Personal implements ISettings {
public function getForm(): TemplateResponse {
Util::addScript(Application::APP_ID, 'speedtest');
Util::addStyle(Application::APP_ID, 'style');
return new TemplateResponse(Application::APP_ID, 'settings-personal', [], TemplateResponse::RENDER_AS_BLANK);
}
public function getSection(): string {
return 'speedtest';
}
/** Only one form in this section, so the order is academic. */
public function getPriority(): int {
return 50;
}
}