$storage = \Drupal::entityTypeManager()->getStorage('my_custom_config_entity');
$ids = \Drupal::entityQuery('my_custom_config_entity')->execute();
$List = $storage->loadMultiple($ids);
foreach($ids as $entity) {
$id = $entity->id();
$title = $entity->label();
$custom_field = $entity->get('custom_field');
// See how this line differs from content entities, who would have $entity->get('custom_field')->getString();
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter