Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96286124
DifferentialPathFieldSpecification.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
Tue, Dec 24, 13:39
Size
490 B
Mime Type
text/x-php
Expires
Thu, Dec 26, 13:39 (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
23150435
Attached To
rPH Phabricator
DifferentialPathFieldSpecification.php
View Options
<?php
final
class
DifferentialPathFieldSpecification
extends
DifferentialFieldSpecification
{
public
function
shouldAppearOnRevisionView
()
{
return
PhabricatorEnv
::
getEnvConfig
(
'differential.show-host-field'
);
}
public
function
renderLabelForRevisionView
()
{
return
'Path:'
;
}
public
function
renderValueForRevisionView
()
{
$diff
=
$this
->
getManualDiff
();
$path
=
$diff
->
getSourcePath
();
if
(!
$path
)
{
return
null
;
}
return
$path
;
}
}
Event Timeline
Log In to Comment