3 final class PhabricatorAccessibilitySetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 'resource-postprocessor';
8 public function getSettingName() {
9 return pht('Accessibility');
12 public function getSettingPanelKey() {
13 return PhabricatorDisplayPreferencesSettingsPanel
::PANELKEY
;
16 protected function getSettingOrder() {
20 protected function getControlInstructions() {
22 'If you have difficulty reading the Phabricator UI, this setting '.
23 'may make Phabricator more accessible.');
26 public function getSettingDefaultValue() {
27 return CelerityDefaultPostprocessor
::POSTPROCESSOR_KEY
;
30 protected function getSelectOptions() {
31 $postprocessor_map = CelerityPostprocessor
::getAllPostprocessors();
33 $postprocessor_map = mpull($postprocessor_map, 'getPostprocessorName');
34 asort($postprocessor_map);
36 $postprocessor_order = array(
37 CelerityDefaultPostprocessor
::POSTPROCESSOR_KEY
,
40 $postprocessor_map = array_select_keys(
42 $postprocessor_order) +
$postprocessor_map;
44 return $postprocessor_map;