Wikibase
MediaWiki Wikibase extension
|
A service to create normalized versions of data values. More...
Public Member Functions | |
normalize (DataValue $value) | |
Normalize the given value. | |
A service to create normalized versions of data values.
Normalization should have the following properties:
equals()
}, not necessarily ===
).Wikibase\Lib\Normalization\DataValueNormalizer::normalize | ( | DataValue | $value | ) |
Normalize the given value.
DataValue | $value | The value to normalize. Every implementation must be able to handle every data value type without error, even if it’s just by returning the same value without modification. |
Implemented in Wikibase\Lib\Normalization\CompositeDataValueNormalizer, Wikibase\Lib\Normalization\StringValueNormalizer, and Wikibase\Repo\Normalization\CommonsMediaValueNormalizer.