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;
}
doc_Drupal
2016-10-29 08:52:56
Comments
Leave a Comment

Please login to continue.