final |
|---|
Collects cross-module dashboard-group contributions declared by service providers before the wire-emitter tree is built.
The LUX composition primitive for dashboards: a composer require'd module
can drop one of its Tiles/Cards into another module's Dashboard Group
without editing that group — it registers one line in its own service
provider (app(DashboardGroupCollector::class)->add($groupNs, $childNs)).
Mirrors {@see \LaravelUi5\Core\Ui5\Ui5InfrastructureCollector} (the module
collector) one layer up: register-time state, read once by the transformer.
Contributions are artifact namespace strings, resolved through the registry by {@see DefaultDashboardTransformer} exactly like a group's own {@see \LaravelUi5\Core\Ui5\Contracts\Ui5DashboardGroupInterface::getChildNamespaces()} children. So a contributed child is a normally-registered artifact on its own module — its Card manifest endpoint resolves, its Tile emits inline. Artifacts live on modules, by design: the host is not a contribution surface, and this collector never sidesteps module registration — it only routes an already-registered artifact into a foreign group.
Empty collector ⇒ nothing contributed ⇒ the transformer stays a pure 1:1
walk (the Core no-op), so new DefaultDashboardTransformer($registry) is
unaffected.
| Methods | ||
|---|---|---|
public
|
add(string $groupNamespace, string $artifactNamespace): self
|
# |
public
|
forGroup(string $groupNamespace): list<string>
|
# |