Page MenuHomePhorge

PhabricatorContentSourceView.php
No OneTemporary

Size
683 B
Referenced Files
None
Subscribers
None

PhabricatorContentSourceView.php

<?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));
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 1:47 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
223974
Default Alt Text
PhabricatorContentSourceView.php (683 B)

Event Timeline