Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895154
PhabricatorCustomUIFooterConfigType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
992 B
Referenced Files
None
Subscribers
None
PhabricatorCustomUIFooterConfigType.php
View Options
<?php
final
class
PhabricatorCustomUIFooterConfigType
extends
PhabricatorConfigJSONOptionType
{
public
function
validateOption
(
PhabricatorConfigOption
$option
,
$value
)
{
if
(
!
is_array
(
$value
)
)
{
throw
new
Exception
(
pht
(
'Footer configuration is not valid: value must be a list of '
.
'items.'
)
)
;
}
foreach
(
$value
as
$idx
=>
$item
)
{
if
(
!
is_array
(
$item
)
)
{
throw
new
Exception
(
pht
(
'Footer item with index "%s" is invalid: each item must be a '
.
'dictionary describing a footer item.'
,
$idx
)
)
;
}
try
{
PhutilTypeSpec
::
checkMap
(
$item
,
array
(
'name'
=>
'string'
,
'href'
=>
'optional string'
,
)
)
;
}
catch
(
Exception
$ex
)
{
throw
new
Exception
(
pht
(
'Footer item with index "%s" is invalid: %s'
,
$idx
,
$ex
->
getMessage
(
)
)
)
;
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:00 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128709
Default Alt Text
PhabricatorCustomUIFooterConfigType.php (992 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment