public function ConfigEntityStorageDecorator::load in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::load()
- 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::load()
- 4.x webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::load()
Loads one entity.
Parameters
mixed $id: The ID of the entity to load.
Return value
\Drupal\Core\Entity\EntityInterface|null An entity object. NULL if no matching entity is found.
Overrides EntityStorageInterface::load
File
- webprofiler/
src/ Entity/ Decorators/ Config/ ConfigEntityStorageDecorator.php, line 50
Class
- ConfigEntityStorageDecorator
- Class ConfigEntityStorageDecorator
Namespace
Drupal\webprofiler\Entity\Decorators\ConfigCode
public function load($id) {
$entity = $this
->getOriginalObject()
->load($id);
$this->entities[$id] = $entity;
return $entity;
}