function node_type_get_types
Same name and namespace in other branches
- 7.x modules/node/node.module \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.
Return value
\Drupal\node\NodeTypeInterface[] An array of node type entities, keyed by ID.
Deprecated
in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\node\Entity\NodeType::loadMultiple().
See also
\Drupal\node\Entity\NodeType::load()
File
-
core/
modules/ node/ node.module, line 280
Code
function node_type_get_types() {
return NodeType::loadMultiple();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.