Skip to content
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

alternate route event: getter for current route item #177

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Upgrade Notes

## 5.1.1
- [IMPROVEMENT] alternate route event: getter for current route item
## 5.1.0
- [FEATURE] pimcore backend: object preview button
- [IMPROVEMENT] prevent applying str_contains on null value
Expand Down
5 changes: 5 additions & 0 deletions src/Event/AlternateDynamicRouteEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public function getType(): string
return $this->type;
}

public function getCurrentRouteItem(): RouteItemInterface
{
return $this->currentRouteItem;
}

public function isCurrentRouteHeadless(): bool
{
return $this->currentRouteItem->isHeadless() === true;
Expand Down
Loading