Skip to content

Commit

Permalink
Merge branch '6.4' into 6.x
Browse files Browse the repository at this point in the history
* 6.4:
  Override getPathByConvention function in MenuItemAdminListConfigurator so it returns the correct path
  Fix getCurrentFullHost return type
  • Loading branch information
acrobat committed Jun 9, 2024
2 parents 8b7ef10 + faa51ef commit 6f1daaa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,18 @@ public function getLimit()
{
return 1000;
}

/**
* @param string|null $suffix
*
* @return string
*/
public function getPathByConvention($suffix = null)
{
if (null === $suffix || $suffix === '') {
return 'kunstmaanmenubundle_admin_menuitem';
}

return sprintf('kunstmaanmenubundle_admin_menuitem_%s', $suffix);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getCurrentHost(): string
return $this->domainConfiguration->getHost();
}

public function getCurrentFullHost(): array
public function getCurrentFullHost(): ?array
{
return $this->domainConfiguration->getFullHost();
}
Expand Down

0 comments on commit 6f1daaa

Please sign in to comment.