src/Field/Generic.php
public function getValue(): string
    {
        if (!$this->validated && $this->defaultValue !== null) {
            return $this->defaultValue;
        }

        if ($this->value === null) {
            return '';
        }

        return $this->value;
    }
public function getValue(): string
    {
        if (!$this->validated && $this->defaultValue !== null) {
            return $this->defaultValue;
        }

        if ($this->value === null) {
            return '';
        }

        return $this->value;
    }
public function getValue ( ) : string { if ( ! $ this -> validated && $ this -> defaultValue !== null ) { return $ this -> defaultValue ; } if ( $ this -> value === null ) { return '' ; } return $ this -> value ; }
Gets the field's value

@return string The value
Gets the field s value