function ConfigEntityBase::loadMultipleOverrideFree
Same name and namespace in other branches
- main core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::loadMultipleOverrideFree()
Loads one or more entities in their original form without overrides.
Parameters
string[]|null $ids: An array of entity IDs, or NULL to load all entities.
Return value
static[] An array of entity objects indexed by their IDs. Returns an empty array if no matching entities are found.
File
-
core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php, line 676
Class
- ConfigEntityBase
- Defines a base configuration entity class.
Namespace
Drupal\Core\Config\EntityCode
public static function loadMultipleOverrideFree(?array $ids = NULL) : array {
$entity_type_repository = \Drupal::service('entity_type.repository');
$entity_type_manager = \Drupal::entityTypeManager();
$storage = $entity_type_manager->getStorage($entity_type_repository->getEntityTypeFromClass(static::class));
assert($storage instanceof ConfigEntityStorageInterface);
return $storage->loadMultipleOverrideFree($ids);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.