@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorDestructionEngineExtensionModule
4 extends PhabricatorConfigModule {
5
6 public function getModuleKey() {
7 return 'destructionengine';
8 }
9
10 public function getModuleName() {
11 return pht('Engine: Destruction');
12 }
13
14 public function renderModuleStatus(AphrontRequest $request) {
15 $viewer = $request->getViewer();
16
17 $extensions = PhabricatorDestructionEngineExtension::getAllExtensions();
18
19 $rows = array();
20 foreach ($extensions as $extension) {
21 $rows[] = array(
22 get_class($extension),
23 $extension->getExtensionName(),
24 );
25 }
26
27 return id(new AphrontTableView($rows))
28 ->setHeaders(
29 array(
30 pht('Class'),
31 pht('Name'),
32 ))
33 ->setColumnClasses(
34 array(
35 null,
36 'wide pri',
37 ));
38
39 }
40
41}