|
@@ -1199,6 +1199,14 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
return $this->routeGenerator->generateUrl($this, $name, $parameters, $absolute);
|
|
return $this->routeGenerator->generateUrl($this, $name, $parameters, $absolute);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * {@inheritdoc}
|
|
|
|
+ */
|
|
|
|
+ public function generateMenuUrl($name, array $parameters = array(), $absolute = false)
|
|
|
|
+ {
|
|
|
|
+ return $this->routeGenerator->generateMenuUrl($this, $name,$parameters, $absolute);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @param array $templates
|
|
* @param array $templates
|
|
*
|
|
*
|
|
@@ -1422,7 +1430,6 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
|
|
|
$menu = $this->menuFactory->createItem('root');
|
|
$menu = $this->menuFactory->createItem('root');
|
|
$menu->setChildrenAttribute('class', 'nav nav-list');
|
|
$menu->setChildrenAttribute('class', 'nav nav-list');
|
|
- $menu->setCurrentUri($this->getRequest()->getBaseUrl().$this->getRequest()->getPathInfo());
|
|
|
|
|
|
|
|
$this->configureSideMenu($menu, $action, $childAdmin);
|
|
$this->configureSideMenu($menu, $action, $childAdmin);
|
|
|
|
|
|
@@ -2058,8 +2065,6 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
$menu = $menu->addChild(
|
|
$menu = $menu->addChild(
|
|
$this->trans($this->getLabelTranslatorStrategy()->getLabel(sprintf('%s_%s', $this->getClassnameLabel(), $action), 'breadcrumb', 'link'))
|
|
$this->trans($this->getLabelTranslatorStrategy()->getLabel(sprintf('%s_%s', $this->getClassnameLabel(), $action), 'breadcrumb', 'link'))
|
|
);
|
|
);
|
|
- } else {
|
|
|
|
- $menu->getBreadcrumbsArray();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
return $this->breadcrumbs[$action] = $menu;
|
|
return $this->breadcrumbs[$action] = $menu;
|