Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94186101
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
Wed, Dec 4, 13:58
Size
809 B
Mime Type
text/x-php
Expires
Fri, Dec 6, 13:58 (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