function node_type_get_description
Same name and namespace in other branches
- 10 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.
Deprecated
in drupal:11.3.0 and is removed from drupal:12.0.0. Use $node_type->getDescription() instead.
See also
https://www.drupal.org/node/3531945
File
-
core/
modules/ node/ node.module, line 133
Code
function node_type_get_description(NodeTypeInterface $node_type) {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use $node_type->getDescription() instead. See https://www.drupal.org/node/3531945', E_USER_DEPRECATED);
return $node_type->getDescription();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.