Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / transactions / engineextension / PhabricatorEditorExtensionModule.php
blobe34a0bb3a730d10a46a660cf6df41ed618898d2e
1 <?php
3 final class PhabricatorEditorExtensionModule
4 extends PhabricatorConfigModule {
6 public function getModuleKey() {
7 return 'editor';
10 public function getModuleName() {
11 return pht('Engine: Editor');
14 public function renderModuleStatus(AphrontRequest $request) {
15 $viewer = $request->getViewer();
17 $extensions = PhabricatorEditorExtension::getAllExtensions();
19 $rows = array();
20 foreach ($extensions as $extension) {
21 $rows[] = array(
22 get_class($extension),
23 $extension->getExtensionName(),
27 return id(new AphrontTableView($rows))
28 ->setHeaders(
29 array(
30 pht('Class'),
31 pht('Name'),
33 ->setColumnClasses(
34 array(
35 null,
36 'wide pri',
37 ));