Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94259554
PhabricatorCommitRepositoryField.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
Thu, Dec 5, 05:33
Size
809 B
Mime Type
text/x-php
Expires
Sat, Dec 7, 05:33 (2 d)
Engine
blob
Format
Raw Data
Handle
22753263
Attached To
rPH Phabricator
PhabricatorCommitRepositoryField.php
View Options
<?php
final
class
PhabricatorCommitRepositoryField
extends
PhabricatorCommitCustomField
{
public
function
getFieldKey
()
{
return
'diffusion:repository'
;
}
public
function
getFieldName
()
{
return
pht
(
'Repository'
);
}
public
function
getFieldDescription
()
{
return
pht
(
'Shows repository in email.'
);
}
public
function
shouldDisableByDefault
()
{
return
true
;
}
public
function
shouldAppearInTransactionMail
()
{
return
true
;
}
public
function
updateTransactionMailBody
(
PhabricatorMetaMTAMailBody
$body
,
PhabricatorApplicationTransactionEditor
$editor
,
array
$xactions
)
{
$repository
=
$this
->
getObject
()->
getRepository
();
$body
->
addTextSection
(
pht
(
'REPOSITORY'
),
$repository
->
getMonogram
().
' '
.
$repository
->
getName
());
}
}
Event Timeline
Log In to Comment