You are here

public function ConfigEntityStorage::loadOverrideFree in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::loadOverrideFree()
  2. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::loadOverrideFree()

Loads one entity in their original form without overrides.

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 ConfigEntityStorageInterface::loadOverrideFree

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 472

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function loadOverrideFree($id) {
  $entities = $this
    ->loadMultipleOverrideFree([
    $id,
  ]);
  return $entities[$id] ?? NULL;
}