# clanbite_normalize_admin_sub_tabs()

Validate sub-tab definitions for the admin bootstrap payload.

Drops entries without an id, label or slot id, entries the current user lacks the capability for, and duplicate
ids (first wins), then orders by `priority` (stable). Used by the admin REST controller; exposed so tests and
integrations can reuse the same rules.

```php
clanbite_normalize_admin_sub_tabs( $items ): array
```

## Parameters

- `$items` (mixed) Raw list from the `clanbite_admin_rest_sub_tabs` filter.

## Return

`array<int, array{id: string, label: string, slotId?: string, sectionGroups?: array<int, array<string, mixed>>}>` 

## Changelog

| Version | Description |
| --- | --- |
| 1.5.0 | Updated |
| 1.4.0 | Introduced |
