Guarantee terms in PhabricatorAuthPasswordEngine are strings
[phabricator/blender.git] / src / infrastructure / contentsource / PhabricatorContentSourceView.php
blob14bacb08d94a8cf97e1eebda70b79a91172c754e
1 <?php
3 final class PhabricatorContentSourceView extends AphrontView {
5 private $contentSource;
7 public function setContentSource(PhabricatorContentSource $content_source) {
8 $this->contentSource = $content_source;
9 return $this;
12 public function getSourceName() {
13 return $this->contentSource->getSourceName();
16 public function render() {
17 require_celerity_resource('phabricator-content-source-view-css');
19 $name = $this->getSourceName();
20 if ($name === null) {
21 return null;
24 return phutil_tag(
25 'span',
26 array(
27 'class' => 'phabricator-content-source-view',
29 pht('Via %s', $name));