Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892729
PhabricatorContentSourceView.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
672 B
Referenced Files
None
Subscribers
None
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
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 17:15 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126863
Default Alt Text
PhabricatorContentSourceView.php (672 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment