-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Area and MenuItem classes #6969
base: v5/refactor/panel-php
Are you sure you want to change the base?
New Area and MenuItem classes #6969
Conversation
I think it would be great if |
// register all routes from areas | ||
foreach ($areas as $id => $area) { | ||
foreach ($areas as $area) { | ||
$routes = [ | ||
...$routes, | ||
...static::routesForViews($id, $area), | ||
...static::routesForSearches($id, $area), | ||
...static::routesForDialogs($id, $area), | ||
...static::routesForDrawers($id, $area), | ||
...static::routesForDropdowns($id, $area), | ||
...static::routesForRequests($id, $area), | ||
...static::routesForViews($area), | ||
...static::routesForSearches($area), | ||
...static::routesForDialogs($area), | ||
...static::routesForDrawers($area), | ||
...static::routesForDropdowns($area), | ||
...static::routesForRequests($area), | ||
]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick:
Not necessarily in this PR, but looking at this it just screams to me for
...$area->routes()
Looks great! I'd suggest to merge #6970 first in here and then together in the other PR. |
Summary
Kirby\Panel\Ui\MenuItem
classKirby\Panel\Area
class