node_type_get_types()
Returns a list of all the available node types.
This list can include types that are queued for addition or deletion.
\Drupal\node\NodeTypeInterface[] An array of node type entities, keyed by ID.
in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\node\Entity\NodeType::loadMultiple().
\Drupal\node\Entity\NodeType::load()
function node_type_get_types() { return NodeType::loadMultiple(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!node!node.module/function/node_type_get_types/8.1.x