Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117718310
PhabricatorContentSourceView.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
Sun, Jun 15, 10:52
Size
683 B
Mime Type
text/x-php
Expires
Tue, Jun 17, 10:52 (2 d)
Engine
blob
Format
Raw Data
Handle
26777154
Attached To
rPH Phabricator
PhabricatorContentSourceView.php
View Options
<?php
final
class
PhabricatorContentSourceView
extends
AphrontView
{
private
$contentSource
;
public
function
setContentSource
(
PhabricatorContentSource
$content_source
)
{
$this
->
contentSource
=
$content_source
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'phabricator-content-source-view-css'
);
$map
=
PhabricatorContentSource
::
getSourceNameMap
();
$source
=
$this
->
contentSource
->
getSource
();
$type
=
idx
(
$map
,
$source
,
null
);
if
(!
$type
)
{
return
null
;
}
return
phutil_tag
(
'span'
,
array
(
'class'
=>
'phabricator-content-source-view'
,
),
pht
(
'Via %s'
,
$type
));
}
}
Event Timeline
Log In to Comment