public function ContentEntityStorageTrait::getOriginalStorage in Multiversion 8
Same name and namespace in other branches
- 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
Namespace
Drupal\multiversion\Entity\StorageCode
public function getOriginalStorage() {
if ($this->originalStorage == NULL) {
$this->originalStorage = $this->entityManager
->getHandler($this->entityTypeId, 'original_storage');
}
return $this->originalStorage;
}