You are here

public function RevisionInfoItemListNormalizer::normalize in Replication 8

Same name and namespace in other branches
  1. 8.2 src/Normalizer/RevisionInfoItemListNormalizer.php \Drupal\replication\Normalizer\RevisionInfoItemListNormalizer::normalize()

Overrides ListNormalizer::normalize

File

src/Normalizer/RevisionInfoItemListNormalizer.php, line 22

Class

RevisionInfoItemListNormalizer

Namespace

Drupal\replication\Normalizer

Code

public function normalize($field, $format = NULL, array $context = []) {
  if (!empty($context['query']['revs_info'])) {
    return parent::normalize($field, $format, $context);
  }
  return [];
}