* @since 5.0.0 */ class DefineEditUserScreensEvent extends Event { /** * @var User The currently logged-in user */ public User $currentUser; /** * @var User The user being edited. */ public User $editedUser; /** * @var array The screens that should be shown for the user being edited. * * Each screen should be represented by a sub-array whose key is the screen ID, and which has the following keys: * * - `label` – The screen’s nav item label. * - `url` – The screen’s URL (optional; a URL like `myaccount/screen-key` * or `users/x/screen-key` will be used by default). */ public array $screens; }