public function RevisionInfoItemListNormalizer::normalize in Replication 8
Same name and namespace in other branches
- 8.2 src/Normalizer/RevisionInfoItemListNormalizer.php \Drupal\replication\Normalizer\RevisionInfoItemListNormalizer::normalize()
Overrides ListNormalizer::normalize
File
- src/
Normalizer/ RevisionInfoItemListNormalizer.php, line 22
Class
Namespace
Drupal\replication\NormalizerCode
public function normalize($field, $format = NULL, array $context = []) {
if (!empty($context['query']['revs_info'])) {
return parent::normalize($field, $format, $context);
}
return [];
}