You are here

public function RevsDiffNormalizer::normalize in Replication 8

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

File

src/Normalizer/RevsDiffNormalizer.php, line 32

Class

RevsDiffNormalizer

Namespace

Drupal\replication\Normalizer

Code

public function normalize($rev_diff, $format = NULL, array $context = []) {

  /** @var \Drupal\replication\RevisionDiff\RevisionDiffInterface $rev_diff */
  $missing = $rev_diff
    ->getMissing();
  return $missing ?: new \stdClass();
}