Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / engineextension / PhabricatorHovercardEngineExtensionModule.php
bloba1a30dd08bc7e9ca1b1484cc5b017ff743fe9995
1 <?php
3 final class PhabricatorHovercardEngineExtensionModule
4 extends PhabricatorConfigModule {
6 public function getModuleKey() {
7 return 'hovercardengine';
10 public function getModuleName() {
11 return pht('Engine: Hovercards');
14 public function renderModuleStatus(AphrontRequest $request) {
15 $viewer = $request->getViewer();
17 $extensions = PhabricatorHovercardEngineExtension::getAllExtensions();
19 $rows = array();
20 foreach ($extensions as $extension) {
21 $rows[] = array(
22 $extension->getExtensionOrder(),
23 $extension->getExtensionKey(),
24 get_class($extension),
25 $extension->getExtensionName(),
26 $extension->isExtensionEnabled()
27 ? pht('Yes')
28 : pht('No'),
32 return id(new AphrontTableView($rows))
33 ->setHeaders(
34 array(
35 pht('Order'),
36 pht('Key'),
37 pht('Class'),
38 pht('Name'),
39 pht('Enabled'),
41 ->setColumnClasses(
42 array(
43 null,
44 null,
45 null,
46 'wide pri',
47 null,
48 ));