AvatarKitServiceStorage.php in Avatar Kit 8.2
File
src/Entity/AvatarKitServiceStorage.php
View source
<?php
namespace Drupal\avatars\Entity;
use Drupal\Core\Config\Entity\ConfigEntityStorage;
class AvatarKitServiceStorage extends ConfigEntityStorage implements AvatarKitServiceStorageInterface {
public function loadMultipleGenerator(array $service_ids) {
foreach ($service_ids as $service_id) {
$service = $this
->load($service_id);
if ($service) {
(yield $service_id => $service
->getPlugin());
}
}
}
}