Differential D20041 Diff 47853 src/applications/transactions/engineextension/PhabricatorEditorExtensionModule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/engineextension/PhabricatorEditorExtensionModule.php
- This file was added.
<?php | |||||
final class PhabricatorEditorExtensionModule | |||||
extends PhabricatorConfigModule { | |||||
public function getModuleKey() { | |||||
return 'editor'; | |||||
} | |||||
public function getModuleName() { | |||||
return pht('Engine: Editor'); | |||||
} | |||||
public function renderModuleStatus(AphrontRequest $request) { | |||||
$viewer = $request->getViewer(); | |||||
$extensions = PhabricatorEditorExtension::getAllExtensions(); | |||||
$rows = array(); | |||||
foreach ($extensions as $extension) { | |||||
$rows[] = array( | |||||
get_class($extension), | |||||
$extension->getExtensionName(), | |||||
); | |||||
} | |||||
return id(new AphrontTableView($rows)) | |||||
->setHeaders( | |||||
array( | |||||
pht('Class'), | |||||
pht('Name'), | |||||
)) | |||||
->setColumnClasses( | |||||
array( | |||||
null, | |||||
'wide pri', | |||||
)); | |||||
} | |||||
} |