public function getValue(string $name)
    {
        // Attempt to get value from the form data.
        $value = $this->data ? $this->data[$name] : null;

        // Return the form data or fall back to the object property.
        return $value ?? $this->getObject()->value($name);
    }
public function getValue(string $name)
    {
        // Attempt to get value from the form data.
        $value = $this->data ? $this->data[$name] : null;

        // Return the form data or fall back to the object property.
        return $value ?? $this->getObject()->value($name);
    }
public function getValue ( string $ name ) { // Attempt to get value from the form data. $ value = $ this -> data ? $ this -> data [ $ name ] : null ; // Return the form data or fall back to the object property. return $ value ?? $ this -> getObject ( ) -> value ( $ name ) ; }
Get a value from the form.

Note: Used in form fields.

@param string $name
@return mixed
Get a value from the form .