Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92732753
PhabricatorAccessibilitySetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 23, 06:06
Size
994 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 06:06 (2 d)
Engine
blob
Format
Raw Data
Handle
22500378
Attached To
rPH Phabricator
PhabricatorAccessibilitySetting.php
View Options
<?php
final
class
PhabricatorAccessibilitySetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'resource-postprocessor'
;
public
function
getSettingName
()
{
return
pht
(
'Accessibility'
);
}
protected
function
getControlInstructions
()
{
return
pht
(
'If you have difficulty reading the Phabricator UI, these settings '
.
'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
;
}
}
Event Timeline
Log In to Comment