N°8955 Add badges to subblocks list

This commit is contained in:
Timothee
2026-02-27 11:57:12 +01:00
parent 7b7f78b434
commit ee69d747a0

View File

@@ -41,7 +41,14 @@ class ExtensionDetails extends UIContentBlock
public function GetSubBlocks(): array
{
return [$this->oToggler->GetId() => $this->oToggler, $this->oMoreActions->GetId() => $this->oMoreActions];
$aSubBlocks = [
$this->oToggler->GetId() => $this->oToggler,
$this->oMoreActions->GetId() => $this->oMoreActions,
];
foreach ($this->aBadges as $oBadge) {
$aSubBlocks[$oBadge->GetId()] = $oBadge;
}
return $aSubBlocks;
}
/**