' . $this->renderBadge() . $this->createLink($menu) . ''; } /** * Render the badge * * @return string */ protected function renderBadge() { if ($count = $this->getCount()) { $view = $this->getView(); return sprintf( '%s', $view->escape($this->getTitle()), $view->escape($this->getState()), $count ); } return ''; } }