Skip to content
Snippets Groups Projects

Issue #3264370: function Drupal\Node\NodeForm::save() does not return a value

Files
2
@@ -701,9 +701,7 @@ protected function doSave($id, EntityInterface $entity) {
$return = SAVED_NEW;
}
else {
// @todo Consider returning a different value when saving a non-default
// entity revision. See https://www.drupal.org/node/2509360.
$return = $entity->isDefaultRevision() ? SAVED_UPDATED : FALSE;
$return = SAVED_UPDATED;
}
$this->populateAffectedRevisionTranslations($entity);
Loading