Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110276876
DifferentialRevisionSummaryHeraldField.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
Fri, Apr 25, 12:04
Size
768 B
Mime Type
text/x-php
Expires
Sun, Apr 27, 12:04 (2 d)
Engine
blob
Format
Raw Data
Handle
25795761
Attached To
rPH Phabricator
DifferentialRevisionSummaryHeraldField.php
View Options
<?php
final
class
DifferentialRevisionSummaryHeraldField
extends
DifferentialRevisionHeraldField
{
const
FIELDCONST
=
'differential.revision.summary'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Revision summary'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
// NOTE: For historical reasons, this field includes the test plan. We
// could maybe try to fix this some day, but it probably aligns reasonably
// well with user expectation without harming anything.
return
$object
->
getSummary
().
"
\n\n
"
.
$object
->
getTestPlan
();
}
protected
function
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_TEXT
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
return
HeraldAdapter
::
VALUE_TEXT
;
}
}
Event Timeline
Log In to Comment