Drupal 10 Entity Base Module
src\Entity\CustomContenEntity.php:
* @ContentEntityType(
* handlers = {
* "storage" = "Drupal\entity_base\ContentEntityBaseStorage",
* }
* )
src\Entity\CustomConfigEntity.php:
* @ConfigEntityType(
* handlers = {
* "storage" = "Drupal\entity_base\ConfigEntityBaseStorage",
* }
* )
$myContentEntity = \Drupal::entityTypeManager()->getStorage('custom_content_entity')->loadByUuid($uuid);
$myConfigEntity = \Drupal::entityTypeManager()->getStorage('custom_config_entity')->loadByUuid($uuid);
You are free to use this module without any restriction but without any warranty.