protected function renderHeaderContent(Descriptor $descriptor) {
		$tagsLocator = $this->getTagsLocator();
		
		$title = '';
		
		if ($descriptor->hasLabel()) {
			$label  = htmlspecialchars($descriptor->getLabel());
			$title .= $tagsLocator->label->render($label);
		}
		
		$title .= htmlspecialchars($descriptor->getTitle());
		
		if ($descriptor->hasBadge()) {
			$badge  = htmlspecialchars($descriptor->getBadge());
			$title .= $tagsLocator->badge->render($badge);
		}
		
		return $tagsLocator->header->render($title);
	}
protected function renderHeaderContent(Descriptor $descriptor) {
		$tagsLocator = $this->getTagsLocator();
		
		$title = '';
		
		if ($descriptor->hasLabel()) {
			$label  = htmlspecialchars($descriptor->getLabel());
			$title .= $tagsLocator->label->render($label);
		}
		
		$title .= htmlspecialchars($descriptor->getTitle());
		
		if ($descriptor->hasBadge()) {
			$badge  = htmlspecialchars($descriptor->getBadge());
			$title .= $tagsLocator->badge->render($badge);
		}
		
		return $tagsLocator->header->render($title);
	}
protected function renderHeaderContent ( Descriptor $ descriptor ) { $ tagsLocator = $ this -> getTagsLocator ( ) ; $ title = '' ; if ( $ descriptor -> hasLabel ( ) ) { $ label = htmlspecialchars ( $ descriptor -> getLabel ( ) ) ; $ title .= $ tagsLocator -> label -> render ( $ label ) ; } $ title .= htmlspecialchars ( $ descriptor -> getTitle ( ) ) ; if ( $ descriptor -> hasBadge ( ) ) { $ badge = htmlspecialchars ( $ descriptor -> getBadge ( ) ) ; $ title .= $ tagsLocator -> badge -> render ( $ badge ) ; } return $ tagsLocator -> header -> render ( $ title ) ; }
Rebder the element's header content

@param  Descriptor $descriptor
@return string
Rebder the element s header content