W3cubDocs

/Drupal 8

public function ConfigEntityStorage::loadMultipleOverrideFree

public ConfigEntityStorage::loadMultipleOverrideFree(array $ids = NULL)

Loads one or more entities in their original form without overrides.

Parameters

$ids: An array of entity IDs, or NULL to load all entities.

Return value

\Drupal\Core\Entity\EntityInterface[] An array of entity objects indexed by their IDs. Returns an empty array if no matching entities are found.

Overrides ConfigEntityStorageInterface::loadMultipleOverrideFree

File

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

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function loadMultipleOverrideFree(array $ids = NULL) {
  $this->overrideFree = TRUE;
  $entities = $this->loadMultiple($ids);
  $this->overrideFree = FALSE;
  return $entities;
}

© 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::loadMultipleOverrideFree/8.1.x