protected function LinkItemNormalizer::checkFormat in Replication 8
Checks if the provided format is supported by this normalizer.
Parameters
string $format: The format to check.
Return value
bool TRUE if the format is supported, FALSE otherwise. If no format is specified this will return TRUE.
Overrides NormalizerBase::checkFormat
File
- src/
Normalizer/ LinkItemNormalizer.php, line 202
Class
Namespace
Drupal\replication\NormalizerCode
protected function checkFormat($format = NULL) {
// Don't support HAL normalization because that expects a different format.
// @see \Drupal\hal\Normalizer\FieldItemNormalizer::normalize()
if ($format == 'hal_json') {
return FALSE;
}
return parent::checkFormat($format);
}