You are here

public function EdgeEntityStorageBase::loadUnchanged in Apigee Edge 8

Loads an unchanged entity from the database.

@todo Remove this method once we have a reliable way to retrieve the unchanged entity from the entity object.

Parameters

mixed $id: The ID of the entity to load.

Return value

\Drupal\Core\Entity\EntityInterface|null The unchanged entity, or NULL if the entity cannot be loaded.

Overrides EntityStorageBase::loadUnchanged

2 calls to EdgeEntityStorageBase::loadUnchanged()
AppStorage::loadUnchanged in src/Entity/Storage/AppStorage.php
Loads an unchanged entity from the database.
AppStorage::loadUnchangedByUuid in src/Entity/Storage/AppStorage.php
Load app by UUID.
1 method overrides EdgeEntityStorageBase::loadUnchanged()
AppStorage::loadUnchanged in src/Entity/Storage/AppStorage.php
Loads an unchanged entity from the database.

File

src/Entity/Storage/EdgeEntityStorageBase.php, line 120

Class

EdgeEntityStorageBase
Base entity storage class for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

public function loadUnchanged($id) {
  $this
    ->resetControllerCache([
    $id,
  ]);
  return parent::loadUnchanged($id);
}