Пример #1
0
 /**
  * Render element label
  *
  * @param  \Zend\Form\Element $element
  * @param  \Zend\View\Renderer\RendererInterface $view
  * @return string
  */
 public function renderLabel(Form\Element $element, View $view)
 {
     $label = $element->getLabel();
     if (empty($label)) {
         $label = $element->getName();
     }
     return $this->getMarkupElementLabelStart() . $view->escape($label) . $this->getMarkupElementLabelEnd();
 }