public function BulkDocsNormalizer::normalize in Replication 8
Same name and namespace in other branches
- 8.2 src/Normalizer/BulkDocsNormalizer.php \Drupal\replication\Normalizer\BulkDocsNormalizer::normalize()
File
- src/
Normalizer/ BulkDocsNormalizer.php, line 17
Class
Namespace
Drupal\replication\NormalizerCode
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;
}