Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894961
PhabricatorCommitRepositoryField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
809 B
Referenced Files
None
Subscribers
None
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
(
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 20:45 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128572
Default Alt Text
PhabricatorCommitRepositoryField.php (809 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment