W3cubDocs

/Drupal 8

public function ConfigEntityStorage::loadOverrideFree

public ConfigEntityStorage::loadOverrideFree($id)

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 486

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityStorage.php/function/ConfigEntityStorage::loadOverrideFree/8.1.x