Skip to content

Commit

Permalink
Merge branch '6.x' into 7.0
Browse files Browse the repository at this point in the history
* 6.x:
  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 53b4966 + 6f1daaa commit eea8534
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 @@ -113,4 +113,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 eea8534

Please sign in to comment.