final |
|---|
readonly |
Marks a Tile ({@see \LaravelUi5\Core\Ui5\Contracts\Ui5TileInterface}) or Card ({@see \LaravelUi5\Core\Ui5\Contracts\Ui5CardInterface}) as a contribution to a foreign dashboard group (LUX Weave).
namespace is the published namespace of the target dashboard group the
tile/card joins — the stable anchor, exactly as #[Weave] names its Concept.
{@see \LaravelUi5\Sdk\Weave\Dashboard\DashboardContributions::contributeInto()}
feeds every contribution into Core's DashboardGroupCollector, which the dashboard
transformer merges into the group's children — so a contributor appears with an empty
git diff on the consuming app.
weight orders contributions within a group: small = high priority
(ascending), namespace-alphabetical fallback. There is no
dedup/collision/personalization contract — weight is captured and stable-sorted only.
A tile/card has one home, so the attribute is not repeatable (adding
Attribute::IS_REPEATABLE later, should multi-target contribution ever be
needed, is a backward-compatible change).
SDK-owned, and — like #[Launchpad] — read by
pure live reflection over the registry's rehydrated artifact instances, so it
needs no SdkRegistry/CachedRegistry edit and no ui5:sync harvest.
| Methods | ||
|---|---|---|
public
|
__construct(string $namespace, int $weight = 0)
|
# |
| Properties | |||
|---|---|---|---|
public
|
string
|
$namespace
|
# |
public
|
int
|
$weight
|
# |