getLabel() protected method

Returns the label for the input.
protected getLabel ( ) : string
return string the label
Exemplo n.º 1
0
 /**
  * Returns the label for this block.
  * @return string the label
  */
 protected function getLabel()
 {
     if (isset($this->labelOptions['class'])) {
         $this->labelOptions['class'] .= ' control-label';
     } else {
         $this->labelOptions['class'] = 'control-label';
     }
     return parent::getLabel();
 }
Exemplo n.º 2
0
 /**
  * Returns the label for this block.
  * @return string the label
  */
 protected function getLabel()
 {
     if (isset($this->labelOptions['class'])) {
         $this->labelOptions['class'] .= ' control-label col-md-3';
     } else {
         $this->labelOptions['class'] = 'control-label col-md-3';
     }
     if (isset($this->htmlOptions['id'])) {
         $this->labelOptions['for'] = $this->htmlOptions['id'];
     }
     return parent::getLabel();
 }