How do I get the UUID of a bundle? The getBundleInfo method returns only the machine name and label for bundles.  How do I get the UUID of each bundle, or of all bundles?
Replace BUNDLE_MACHINE_NAME with your bundle machine name.

Drupal::entityTypeManager()-&gt;getStorage("node_type")-&gt;load("BUNDLE_MACHINE_NAME")-&gt;uuid();


Or you can also load it like this:

Drupal\node\Entity\NodeType::load("BUNDLE_MACHINE_NAME")-&gt;uuid();


Entities based on EntityInterface will have the uuid() method.

See EntityInterface::uuid