Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit c541fc9

Browse files
committed
[FEATURE] Add count of local installed exts
1 parent 61fbfe2 commit c541fc9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Classes/Service/SiteApiService.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function getSiteInfo() {
4343

4444
$this->getDiskUsage($data);
4545
$this->getDatabaseInformation($data);
46+
$this->getCountOfExtensions($data);
4647

4748
return $data;
4849
}
@@ -96,6 +97,19 @@ protected function getDatabaseInformation(&$data) {
9697
$data['Database size'] = $value;
9798
}
9899

100+
/**
101+
* Get count of local installed extensions
102+
*
103+
* @param array $data
104+
* @return void
105+
*/
106+
protected function getCountOfExtensions(&$data) {
107+
/** @var Tx_Coreapi_Service_ExtensionApiService $extensionService */
108+
$extensionService = t3lib_div::makeInstance('Tx_Coreapi_Service_ExtensionApiService');
109+
$extensions = $extensionService->getInstalledExtensions('L');
110+
$data['Count local installed extensions'] = count($extensions);
111+
}
112+
99113
}
100114

101115
?>

0 commit comments

Comments
 (0)