Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117774605
ReleephDiffMessageFieldSpecification.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
Sun, Jun 15, 23:22
Size
865 B
Mime Type
text/x-php
Expires
Tue, Jun 17, 23:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26769362
Attached To
rPH Phabricator
ReleephDiffMessageFieldSpecification.php
View Options
<?php
final
class
ReleephDiffMessageFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getFieldKey
()
{
return
'commit:message'
;
}
public
function
getName
()
{
return
'Message'
;
}
public
function
renderLabelForHeaderView
()
{
return
null
;
}
public
function
getStyleForPropertyView
()
{
return
'block'
;
}
public
function
renderValueForHeaderView
()
{
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-remarkup'
,
),
$this
->
getMarkupEngineOutput
());
}
public
function
shouldMarkup
()
{
return
true
;
}
public
function
getMarkupText
(
$field
)
{
$commit_data
=
$this
->
getReleephRequest
()
->
loadPhabricatorRepositoryCommitData
();
if
(
$commit_data
)
{
return
$commit_data
->
getCommitMessage
();
}
else
{
return
''
;
}
}
}
Event Timeline
Log In to Comment