mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 12:42:43 +01:00
45f347fe47
Summary: Ref T4103. This converts other straightforward panels to modern stuff. Test Plan: - Edited various settings. - Tried to set a bogus editor value. Reviewers: chad Reviewed By: chad Maniphest Tasks: T4103 Differential Revision: https://secure.phabricator.com/D16023
47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
|
|
final class PhabricatorAccessibilitySetting
|
|
extends PhabricatorSelectSetting {
|
|
|
|
const SETTINGKEY = 'resource-postprocessor';
|
|
|
|
public function getSettingName() {
|
|
return pht('Accessibility');
|
|
}
|
|
|
|
public function getSettingPanelKey() {
|
|
return PhabricatorDisplayPreferencesSettingsPanel::PANELKEY;
|
|
}
|
|
|
|
protected function getSettingOrder() {
|
|
return 100;
|
|
}
|
|
|
|
protected function getControlInstructions() {
|
|
return pht(
|
|
'If you have difficulty reading the Phabricator UI, this setting '.
|
|
'may make Phabricator more accessible.');
|
|
}
|
|
|
|
public function getSettingDefaultValue() {
|
|
return CelerityDefaultPostprocessor::POSTPROCESSOR_KEY;
|
|
}
|
|
|
|
protected function getSelectOptions() {
|
|
$postprocessor_map = CelerityPostprocessor::getAllPostprocessors();
|
|
|
|
$postprocessor_map = mpull($postprocessor_map, 'getPostprocessorName');
|
|
asort($postprocessor_map);
|
|
|
|
$postprocessor_order = array(
|
|
CelerityDefaultPostprocessor::POSTPROCESSOR_KEY,
|
|
);
|
|
|
|
$postprocessor_map = array_select_keys(
|
|
$postprocessor_map,
|
|
$postprocessor_order) + $postprocessor_map;
|
|
|
|
return $postprocessor_map;
|
|
}
|
|
|
|
}
|