Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
979 B · 48 lines
PHP
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849<?php
final class PhabricatorContentSourceModule extends PhabricatorConfigModule {
public function getModuleKey() { return 'contentsource'; }
public function getModuleName() { return pht('Content Sources'); }
public function renderModuleStatus(AphrontRequest $request) { $viewer = $request->getViewer();
$sources = PhabricatorContentSource::getAllContentSources(); ksort($sources);
$rows = array(); foreach ($sources as $source) { $rows[] = array( $source->getSourceTypeConstant(), get_class($source), $source->getSourceName(), $source->getSourceDescription(), ); }
return id(new AphrontTableView($rows)) ->setHeaders( array( pht('Key'), pht('Class'), pht('Source'), pht('Description'), )) ->setColumnClasses( array( null, null, 'pri', 'wide', ));
}
}