You are here

public function ContentEntityStorageTrait::loadUnchanged in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Storage/ContentEntityStorageTrait.php \Drupal\multiversion\Entity\Storage\ContentEntityStorageTrait::loadUnchanged()
1 call to ContentEntityStorageTrait::loadUnchanged()
ContentEntityStorageTrait::doPreSave in src/Entity/Storage/ContentEntityStorageTrait.php

File

src/Entity/Storage/ContentEntityStorageTrait.php, line 113

Class

ContentEntityStorageTrait

Namespace

Drupal\multiversion\Entity\Storage

Code

public function loadUnchanged($id) {
  $this
    ->resetCache([
    $id,
  ]);
  return $this
    ->load($id) ?: $this
    ->loadDeleted($id);
}