public function label()
    {
        if ($this->label_translated) {
            return cms_trans($this->label_translated);
        }

        if ($this->label) {
            return $this->label;
        }

        return ucfirst(str_replace('_', ' ', snake_case($this->key)));
    }
public function label()
    {
        if ($this->label_translated) {
            return cms_trans($this->label_translated);
        }

        if ($this->label) {
            return $this->label;
        }

        return ucfirst(str_replace('_', ' ', snake_case($this->key)));
    }
public function label ( ) { if ( $ this -> label_translated ) { return cms_trans ( $ this -> label_translated ) ; } if ( $ this -> label ) { return $ this -> label ; } return ucfirst ( str_replace ( '_' , ' ' , snake_case ( $ this -> key ) ) ) ; }
Returns display label for form field.

@return string
Returns display label for form field .