Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96338748
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
Wed, Dec 25, 13:57
Size
491 B
Mime Type
text/x-php
Expires
Fri, Dec 27, 13:57 (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
23166566
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