Skip to content
Snippets Groups Projects
Commit d2fbdd0f authored by Dieter Holvoet's avatar Dieter Holvoet
Browse files

Initial implementation approach.

parent 228328d2
No related branches found
No related tags found
1 merge request!4979Issue #3281219: Language used for config listing should be configurable
......@@ -19,12 +19,24 @@ class ConfigEntityListBuilder extends EntityListBuilder {
*/
protected $storage;
/**
* A flag to decide whether we want to load entity override free or not.
*
* @var bool
*/
protected bool $loadOverrideFree = FALSE;
/**
* {@inheritdoc}
*/
public function load() {
$entity_ids = $this->getEntityIds();
$entities = $this->storage->loadMultipleOverrideFree($entity_ids);
if ($this->loadOverrideFree) {
$entities = $this->storage->loadMultipleOverrideFree($entity_ids);
}
else {
$entities = $this->storage->loadMultiple($entity_ids);
}
// Sort the entities using the entity class's sort() method.
// See \Drupal\Core\Config\Entity\ConfigEntityBase::sort().
......
......@@ -39,6 +39,7 @@ public function __construct(
protected TimeInterface $time,
) {
parent::__construct($entity_type, $storage);
$this->loadOverrideFree = TRUE;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment