function node_type_get_description
Same name and namespace in other branches
- 11.x core/modules/node/node.module \node_type_get_description()
- 9 core/modules/node/node.module \node_type_get_description()
- 8.9.x core/modules/node/node.module \node_type_get_description()
Description callback: Returns the node type description.
Parameters
\Drupal\node\NodeTypeInterface $node_type: The node type object.
Return value
string The node type description.
File
-
core/
modules/ node/ node.module, line 257
Code
function node_type_get_description(NodeTypeInterface $node_type) {
return $node_type->getDescription();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.