diff --git a/src/Kunstmaan/MenuBundle/AdminList/MenuItemAdminListConfigurator.php b/src/Kunstmaan/MenuBundle/AdminList/MenuItemAdminListConfigurator.php index 2fc92d8018..650f5493de 100644 --- a/src/Kunstmaan/MenuBundle/AdminList/MenuItemAdminListConfigurator.php +++ b/src/Kunstmaan/MenuBundle/AdminList/MenuItemAdminListConfigurator.php @@ -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); + } } diff --git a/src/Kunstmaan/MultiDomainBundle/Twig/MultiDomainTwigExtension.php b/src/Kunstmaan/MultiDomainBundle/Twig/MultiDomainTwigExtension.php index cd57dd2cad..17fac90699 100644 --- a/src/Kunstmaan/MultiDomainBundle/Twig/MultiDomainTwigExtension.php +++ b/src/Kunstmaan/MultiDomainBundle/Twig/MultiDomainTwigExtension.php @@ -52,7 +52,7 @@ public function getCurrentHost(): string return $this->domainConfiguration->getHost(); } - public function getCurrentFullHost(): array + public function getCurrentFullHost(): ?array { return $this->domainConfiguration->getFullHost(); }