Class LaravelUi5\Sdk\Shell\Context\IdentityContextContributor

implements ContextContributorInterface, ConfigurableServiceInterface

Contributes a partner's public identity to the shell context.

A contributor fills exactly one context key ({@see \LaravelUi5\Sdk\Shell\Context\ContextService} nests each return under its configured key), so this one class is wired twice — once for KEY_ACTOR, once for KEY_PRINCIPAL — with config.which selecting the partner:

  • actor — the partner being acted as (the representation).
  • principal — the authenticated partner (the identity that logged in).

In the common, non-impersonation case both are the same partner. The projected shape is a minimal display identity — { id, name, first_name, avatar_path, gender } — not the whole row; id is included so a client can scope a request to the partner (e.g. its colleagues).

Methods