BadgeNavigationItemRenderer: Add `$cssClass` on autorefresh
This commit is contained in:
parent
c68fbb662e
commit
df788ac0ef
|
@ -97,7 +97,13 @@ abstract class BadgeNavigationItemRenderer extends NavigationItemRenderer
|
||||||
if ($item === null) {
|
if ($item === null) {
|
||||||
$item = $this->getItem();
|
$item = $this->getItem();
|
||||||
}
|
}
|
||||||
$item->setCssClass('badge-nav-item');
|
|
||||||
|
$cssClass = '';
|
||||||
|
if ($item->getCssClass() !== null) {
|
||||||
|
$cssClass = ' ' . $item->getCssClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
$item->setCssClass('badge-nav-item' . $cssClass);
|
||||||
$this->setEscapeLabel(false);
|
$this->setEscapeLabel(false);
|
||||||
$label = $this->view()->escape($item->getLabel());
|
$label = $this->view()->escape($item->getLabel());
|
||||||
$item->setLabel($this->renderBadge() . $label);
|
$item->setLabel($this->renderBadge() . $label);
|
||||||
|
|
Loading…
Reference in New Issue