public function needsNormalization($format, array $context = [])
    {
        $encoder = $this->getEncoder($format, $context);

        if (!$encoder instanceof NormalizationAwareInterface) {
            return true;
        }

        if ($encoder instanceof self) {
            return $encoder->needsNormalization($format, $context);
        }

        return false;
    }
public function needsNormalization($format, array $context = [])
    {
        $encoder = $this->getEncoder($format, $context);

        if (!$encoder instanceof NormalizationAwareInterface) {
            return true;
        }

        if ($encoder instanceof self) {
            return $encoder->needsNormalization($format, $context);
        }

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

@param string $format
@param array  $context

@return bool
Checks whether the normalization is needed for the given format .