wip: continue implementation
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user