[Form] Fixing the object versus normalized data PHPDoc on Field, which I believe was backwards.
This commit is contained in:
parent
d41b4ec109
commit
cf1512dce8
@ -303,17 +303,22 @@ class Field extends Configurable implements FieldInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the normalized data of the field.
|
||||
* Returns the data in the format needed for the underlying object.
|
||||
*
|
||||
* @return mixed When the field is not bound, the default data is returned.
|
||||
* When the field is bound, the normalized bound data is
|
||||
* returned if the field is valid, null otherwise.
|
||||
* @return mixed
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the normalized data of the field.
|
||||
*
|
||||
* @return mixed When the field is not bound, the default data is returned.
|
||||
* When the field is bound, the normalized bound data is
|
||||
* returned if the field is valid, null otherwise.
|
||||
*/
|
||||
protected function getNormalizedData()
|
||||
{
|
||||
return $this->normalizedData;
|
||||
|
Reference in New Issue
Block a user