public function RevsDiffNormalizer::normalize in Replication 8
Same name and namespace in other branches
- 8.2 src/Normalizer/RevsDiffNormalizer.php \Drupal\replication\Normalizer\RevsDiffNormalizer::normalize()
File
- src/
Normalizer/ RevsDiffNormalizer.php, line 32
Class
Namespace
Drupal\replication\NormalizerCode
public function normalize($rev_diff, $format = NULL, array $context = []) {
/** @var \Drupal\replication\RevisionDiff\RevisionDiffInterface $rev_diff */
$missing = $rev_diff
->getMissing();
return $missing ?: new \stdClass();
}