You are here

public function BulkDocsNormalizer::normalize in Replication 8

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

File

src/Normalizer/BulkDocsNormalizer.php, line 17

Class

BulkDocsNormalizer

Namespace

Drupal\replication\Normalizer

Code

public function normalize($bulk_docs, $format = NULL, array $context = []) {
  $data = [];

  /** @var \Drupal\replication\BulkDocs\BulkDocsInterface $bulk_docs */
  foreach ($bulk_docs
    ->getResult() as $result) {
    $data[] = $result;
  }
  return $data;
}