Skip to content

Commit

Permalink
Fix NavigationHandlerInterface for news and event listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jul 21, 2023
1 parent 320fa84 commit e05642f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/EventListener/Navigation/CalendarNavigationListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
*
* @Hook("changelanguageNavigation")
*/
class CalendarNavigationListener extends AbstractNavigationListener
class CalendarNavigationListener extends AbstractNavigationListener implements NavigationHandlerInterface
{
/**
* @param CalendarEventsModel $model
*/
public function updateNavigation(ChangelanguageNavigationEvent $event, Model $model): void
public function handleNavigation(ChangelanguageNavigationEvent $event, Model $model): void
{
$event->getUrlParameterBag()->setUrlAttribute($this->getUrlKey(), $model->alias ?: $model->id);
$event->getNavigationItem()->setTitle($model->title);
Expand Down
4 changes: 2 additions & 2 deletions src/EventListener/Navigation/NewsNavigationListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
*
* @Hook("changelanguageNavigation")
*/
class NewsNavigationListener extends AbstractNavigationListener
class NewsNavigationListener extends AbstractNavigationListener implements NavigationHandlerInterface
{
/**
* @param NewsModel $model
*/
public function updateNavigation(ChangelanguageNavigationEvent $event, Model $model): void
public function handleNavigation(ChangelanguageNavigationEvent $event, Model $model): void
{
$event->getUrlParameterBag()->setUrlAttribute($this->getUrlKey(), $model->alias ?: $model->id);
$event->getNavigationItem()->setTitle($model->headline);
Expand Down

0 comments on commit e05642f

Please sign in to comment.