Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92767820
DifferentialHostFieldSpecification.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, 13:41
Size
491 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 13:41 (2 d)
Engine
blob
Format
Raw Data
Handle
22508185
Attached To
rPH Phabricator
DifferentialHostFieldSpecification.php
View Options
<?php
final
class
DifferentialHostFieldSpecification
extends
DifferentialFieldSpecification
{
public
function
shouldAppearOnRevisionView
()
{
return
PhabricatorEnv
::
getEnvConfig
(
'differential.show-host-field'
);
}
public
function
renderLabelForRevisionView
()
{
return
'Host:'
;
}
public
function
renderValueForRevisionView
()
{
$diff
=
$this
->
getManualDiff
();
$host
=
$diff
->
getSourceMachine
();
if
(!
$host
)
{
return
null
;
}
return
$host
;
}
}
Event Timeline
Log In to Comment