|null, * admin?: bool, * dynamic?: bool, * item: \Closure * }> */ public function dynamicMenuItems(?object $user, ?object $workspace, bool $isAdmin): array; /** * Get the cache key modifier for dynamic items. * * Dynamic items from this provider will invalidate menu cache when * this key changes. Return null if dynamic items should never affect * cache invalidation. * * @param object|null $user User model instance * @param object|null $workspace Workspace model instance */ public function dynamicCacheKey(?object $user, ?object $workspace): ?string; }