Page MenuHomePhorge

PhabricatorContentSourceView.php
No OneTemporary

PhabricatorContentSourceView.php

<?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

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)

Event Timeline