You are here

public function ConfigEntityStorageDecorator::loadUnchanged in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::loadUnchanged()
  2. 8 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::loadUnchanged()
  3. 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::loadUnchanged()

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 EntityStorageInterface::loadUnchanged

File

webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php, line 61

Class

ConfigEntityStorageDecorator
Class ConfigEntityStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function loadUnchanged($id) {
  return $this
    ->getOriginalObject()
    ->loadUnchanged($id);
}