summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/node/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/node/node.module')
-rw-r--r--core/modules/node/node.module7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index 6841f24b96b..c99569a1c67 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -109,10 +109,11 @@ function node_type_get_names() {
* @return string|false
* The node type label or FALSE if the node type is not found.
*
- * @todo Add this as generic helper method for config entities representing
- * entity bundles.
+ * @deprecated in drupal:11.3.0 and is removed from drupal:13.0.0. Use $node->getBundleEntity()->label() instead.
+ * @see https://www.drupal.org/node/3533301
*/
function node_get_type_label(NodeInterface $node) {
+ @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:13.0.0. Use $node->getBundleEntity()->label(). See https://www.drupal.org/node/3533301', E_USER_DEPRECATED);
$type = NodeType::load($node->bundle());
return $type ? $type->label() : FALSE;
}
@@ -558,7 +559,7 @@ function node_access_rebuild($batch_mode = FALSE): void {
}
}
else {
- // Try to allocate enough time to rebuild node grants
+ // Try to allocate enough time to rebuild node grants.
Environment::setTimeLimit(240);
// Rebuild newest nodes first so that recent content becomes available