Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99880307
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
Mon, Jan 27, 02:37
Size
672 B
Mime Type
text/x-php
Expires
Wed, Jan 29, 02:37 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23841399
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
getSourceName
()
{
return
$this
->
contentSource
->
getSourceName
();
}
public
function
render
()
{
require_celerity_resource
(
'phabricator-content-source-view-css'
);
$name
=
$this
->
getSourceName
();
if
(
$name
===
null
)
{
return
null
;
}
return
phutil_tag
(
'span'
,
array
(
'class'
=>
'phabricator-content-source-view'
,
),
pht
(
'Via %s'
,
$name
));
}
}
Event Timeline
Log In to Comment