Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorDarkConsoleSetting.php
Show All 21 Lines | final class PhabricatorDarkConsoleSetting | ||||
protected function isEnabledForViewer(PhabricatorUser $viewer) { | protected function isEnabledForViewer(PhabricatorUser $viewer) { | ||||
return PhabricatorEnv::getEnvConfig('darkconsole.enabled'); | return PhabricatorEnv::getEnvConfig('darkconsole.enabled'); | ||||
} | } | ||||
protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
return pht( | return pht( | ||||
'DarkConsole is a debugging console for developing and troubleshooting '. | 'DarkConsole is a debugging console for developing and troubleshooting '. | ||||
'Phabricator applications. After enabling DarkConsole, press the '. | 'applications. After enabling DarkConsole, press the '. | ||||
'{nav `} key on your keyboard to toggle it on or off.'); | '{nav `} key on your keyboard to toggle it on or off.'); | ||||
} | } | ||||
public function getSettingDefaultValue() { | public function getSettingDefaultValue() { | ||||
return self::VALUE_DARKCONSOLE_DISABLED; | return self::VALUE_DARKCONSOLE_DISABLED; | ||||
} | } | ||||
protected function getSelectOptions() { | protected function getSelectOptions() { | ||||
Show All 20 Lines |