protected function RevisionHandler::checkUpdates in Feeds Paragraphs 8
Parameters
Paragraph[] $updates:
1 call to RevisionHandler::checkUpdates()
File
- src/
RevisionHandler.php, line 74
Class
Namespace
Drupal\feeds_para_mapperCode
protected function checkUpdates(array $updates) {
$toUpdate = array_filter($updates, function (Paragraph $update) {
return !$update
->isNew();
});
foreach ($toUpdate as $update) {
$this
->createRevision($update);
}
}