public function getRenderLabel($field_key, $required_mark = ' <span class="required">*</span>')
    {
        return sprintf(
            '<label for="%s">%s%s</label>',
            $field_key,
            $this->getLabelText($field_key),
            ($required_mark && $this->isRequired($field_key)) ? $required_mark : null
        );
    }
public function getRenderLabel($field_key, $required_mark = ' <span class="required">*</span>')
    {
        return sprintf(
            '<label for="%s">%s%s</label>',
            $field_key,
            $this->getLabelText($field_key),
            ($required_mark && $this->isRequired($field_key)) ? $required_mark : null
        );
    }
public function getRenderLabel ( $ field_key , $ required_mark = ' <span class="required">*</span>' ) { return sprintf ( '<label for="%s">%s%s</label>' , $ field_key , $ this -> getLabelText ( $ field_key ) , ( $ required_mark && $ this -> isRequired ( $ field_key ) ) ? $ required_mark : null ) ; }
Get the label HTML for a field
@param string $field_key
@param mixed $required_mark Pass null if you don't want required fields to be marked
@return string
Get the label HTML for a field