public function label($name, $value = null, array $options = [])
    {
        $options = $this->getLabelOptions($options);

        $escapeHtml = false;

        if (is_array($value) and isset($value['html'])) {
            $value = $value['html'];
        } elseif ($value instanceof HtmlString) {
            $value = $value->toHtml();
        } else {
            $escapeHtml = true;
        }

        return $this->form->label($name, $value, $options, $escapeHtml);
    }
public function label($name, $value = null, array $options = [])
    {
        $options = $this->getLabelOptions($options);

        $escapeHtml = false;

        if (is_array($value) and isset($value['html'])) {
            $value = $value['html'];
        } elseif ($value instanceof HtmlString) {
            $value = $value->toHtml();
        } else {
            $escapeHtml = true;
        }

        return $this->form->label($name, $value, $options, $escapeHtml);
    }
public function label ( $ name , $ value = null , array $ options = [ ] ) { $ options = $ this -> getLabelOptions ( $ options ) ; $ escapeHtml = false ; if ( is_array ( $ value ) and isset ( $ value [ 'html' ] ) ) { $ value = $ value [ 'html' ] ; } elseif ( $ value instanceof HtmlString ) { $ value = $ value -> toHtml ( ) ; } else { $ escapeHtml = true ; } return $ this -> form -> label ( $ name , $ value , $ options , $ escapeHtml ) ; }
Create a Bootstrap label.

@param  string  $name
@param  string  $value
@param  array   $options
@return string
Create a Bootstrap label .