Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorDarkConsoleSetting.php
- This file was added.
<?php | |||||
final class PhabricatorDarkConsoleSetting | |||||
extends PhabricatorSelectSetting { | |||||
const SETTINGKEY = 'dark_console'; | |||||
const VALUE_DARKCONSOLE_DISABLED = '0'; | |||||
const VALUE_DARKCONSOLE_ENABLED = '1'; | |||||
public function getSettingName() { | |||||
return pht('DarkConsole'); | |||||
} | |||||
protected function getControlInstructions() { | |||||
return pht( | |||||
'DarkConsole is a debugging console for developing and troubleshooting '. | |||||
'Phabricator applications. After enabling DarkConsole, press the '. | |||||
'{nav `} key on your keyboard to toggle it on or off.'); | |||||
} | |||||
public function getSettingDefaultValue() { | |||||
return self::VALUE_DARKCONSOLE_DISABLED; | |||||
} | |||||
protected function getSelectOptions() { | |||||
return array( | |||||
self::VALUE_DARKCONSOLE_DISABLED => pht('Disable DarkConsole'), | |||||
self::VALUE_DARKCONSOLE_ENABLED => pht('Enable DarkConsole'), | |||||
); | |||||
} | |||||
} |