Returning an array of all content types in a folder I exported all my configuration files to config/sync.
Now i'm trying to get all the content types from that folder into an array.

Its a bit like what this code does:

$manager = \Drupal::entityTypeManager();

$manager-&gt;getStorage('node_type')-&gt;loadMultiple();


But that returns all the Installed content types on my drupal.
I just want the ones from my sync folder because i'm making twig templates from them.
If you mean node types, every node type generates (amongst others) a file called node.type.NODE_TYPE_MACHINE_NAME.yml when exporting to config/sync