You are here

public function ConfigEntityStorage::loadOverrideFree in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::loadOverrideFree()
  2. 10 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 482

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

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