How do I get a list of all the content types defined in a Drupal 8 site?
In Drupal 7 it used to be node_type_get_types()
, but it has been deprecated.
I tried Entity::loadMultiple()
but it doesn't seem to work. I was thinking about making a custom query, but I don't know how it's stored in the database.