Example #1
0
 /**
  * Get the Form Field Label
  *
  * @return string
  */
 public function getLabel()
 {
     $open_html = "<div class=\"control-label\"><span class=\"span-label\">";
     $close_html = '</span></div>';
     $html = '';
     $label = $this->currentField->getLabelOption();
     if ($label) {
         $label = $this->currentField->getSetting('label');
         $html = "{$open_html}{$label} {$close_html}";
     }
     return $html;
 }