You are here

public function ContentEntityStorageTrait::getOriginalStorage in Multiversion 8

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

Get original entity type storage handler (not the multiversion one).

Return value

\Drupal\Core\Entity\EntityStorageInterface Original entity type storage handler.

File

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

Class

ContentEntityStorageTrait

Namespace

Drupal\multiversion\Entity\Storage

Code

public function getOriginalStorage() {
  if ($this->originalStorage == NULL) {
    $this->originalStorage = $this->entityManager
      ->getHandler($this->entityTypeId, 'original_storage');
  }
  return $this->originalStorage;
}