You are here

protected function RevisionHandler::checkUpdates in Feeds Paragraphs 8

Parameters

Paragraph[] $updates:

1 call to RevisionHandler::checkUpdates()
RevisionHandler::handle in src/RevisionHandler.php

File

src/RevisionHandler.php, line 74

Class

RevisionHandler

Namespace

Drupal\feeds_para_mapper

Code

protected function checkUpdates(array $updates) {
  $toUpdate = array_filter($updates, function (Paragraph $update) {
    return !$update
      ->isNew();
  });
  foreach ($toUpdate as $update) {
    $this
      ->createRevision($update);
  }
}