wip: continue implementation

This commit is contained in:
Björn Fromme committed 2024-12-02 17:38:56 +01:00
1 parent 84ab6446ea
commit 6f989d4c7a
24 files changed
+444 -237

No files matched your search

+12
View File
@@ -19,4 +19,16 @@ class CrmSelectionGroup
public ?int $id = null;
public ?string $label = null;
public ?array $selections = null;
public function getMutableSelections(): array
{
return array_filter($this->selections, function (CrmSelection $selection) {
return $selection->mutable;
});
}
public function isVisible(): bool
{
return 0 < count($this->getMutableSelections());
}
}