Skip to content

Commit 17bf95f

Browse files
committed
Reword and summarize parts of the internals overview
1 parent 9206cf4 commit 17bf95f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/digging-deeper/navigation.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -343,21 +343,17 @@ While not essential, understanding the internal workings of the navigation syste
343343

344344
### Navigation Menu Classes
345345

346-
The main navigation menu is the `MainNavigationMenu` class, and the documentation sidebar is the `DocumentationSidebar` class. Both extend the same base `NavigationMenu` class.
346+
The main navigation menu uses the `MainNavigationMenu` class, while the documentation sidebar uses the `DocumentationSidebar` class. Both extend the base `NavigationMenu` class:
347347

348348
```php
349349
use Hyde\Framework\Features\Navigation\MainNavigationMenu;
350350
use Hyde\Framework\Features\Navigation\DocumentationSidebar;
351351
use Hyde\Framework\Features\Navigation\NavigationMenu;
352352
```
353353

354-
Within the base `NavigationMenu` class, you will find the main logic for how the menus are generated,
355-
while the child implementations contain the extra logic tailored for their specific use cases.
354+
The base `NavigationMenu` class contains the main logic for menu generation, while child implementations contain extra logic for specific use cases.
356355

357-
All the navigation menus store the menu items in their `$items` collection containing instances of the `NavigationItem` class.
358-
359-
The `NavigationItem` class is a simple class that contains the label and URL of the menu item and is used to represent each item in the menu.
360-
Dropdowns are represented by `NavigationGroup` instances, which extend the `NavigationMenu` class and contain a collection of additional `NavigationItem` instances.
356+
All navigation menus store items in their `$items` collection, containing instances of the `NavigationItem` class. Dropdowns are represented by `NavigationGroup` instances, which extend the `NavigationMenu` class and contain additional `NavigationItem` instances:
361357

362358
```php
363359
use Hyde\Framework\Features\Navigation\NavigationItem;

0 commit comments

Comments
 (0)