# Admin_Rest::section_groups_for_extension_tree()

Collect settings section groups for an extension and its descendants (`parent_slug` tree).

```php
section_groups_for_extension_tree( string $root_slug, Skeleton $root, array $by_slug, array $children_by_parent, Loader $loader ): array
```

## Parameters

- `$root_slug` (string) Slug of the root extension.
- `$root` (Skeleton) Root extension instance.
- `$by_slug` (array<string, Skeleton>) All extensions keyed by slug.
- `$children_by_parent` (array<string, array<int, string>>) Child slugs keyed by parent slug.
- `$loader` (Loader) Extension install state.

## Return

`array<int, array<string, mixed>>` 

## Changelog

| Version | Description |
| --- | --- |
| 1.3.0 | Updated |
