NavigationRenderer: Provide a id for outer item markup (<li>)
refs #5600
This commit is contained in:
parent
2855778dc7
commit
baefc89f85
|
@ -316,9 +316,13 @@ class NavigationRenderer implements RecursiveIterator, NavigationRendererInterfa
|
|||
}
|
||||
|
||||
if (! empty($cssClass)) {
|
||||
$content = sprintf('<li class="%s">', join(' ', $cssClass));
|
||||
$content = sprintf(
|
||||
'<li id="%s" class="%s">',
|
||||
$this->view()->escape($item->getUniqueName()),
|
||||
join(' ', $cssClass)
|
||||
);
|
||||
} else {
|
||||
$content = '<li>';
|
||||
$content = '<li id="' . $this->view()->escape($item->getUniqueName()) . '">';
|
||||
}
|
||||
|
||||
return $content;
|
||||
|
|
Loading…
Reference in New Issue