Checks whether the normalization is needed for the given format.
string $format:
Boolean
public function needsNormalization($format) {
$encoder = $this
->getEncoder($format);
if (!$encoder instanceof NormalizationAwareInterface) {
return true;
}
if ($encoder instanceof self) {
return $encoder
->needsNormalization($format);
}
return false;
}