Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93537262
DiffusionPreCommitContentRepositoryProjectsHeraldField.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, Nov 29, 13:31
Size
713 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 13:31 (2 d)
Engine
blob
Format
Raw Data
Handle
22569000
Attached To
rPH Phabricator
DiffusionPreCommitContentRepositoryProjectsHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentRepositoryProjectsHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.content.repository.projects'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Repository projects'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$this
->
getAdapter
()->
getHookEngine
()->
getRepository
()->
getPHID
(),
PhabricatorProjectObjectHasProjectEdgeType
::
EDGECONST
);
}
protected
function
getHeraldFieldStandardType
()
{
return
HeraldField
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectDatasource
();
}
}
Event Timeline
Log In to Comment