summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Entity/NodeType.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/node/src/Entity/NodeType.php')
-rw-r--r--core/modules/node/src/Entity/NodeType.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/node/src/Entity/NodeType.php b/core/modules/node/src/Entity/NodeType.php
index 6daa45d..56efb86 100644
--- a/core/modules/node/src/Entity/NodeType.php
+++ b/core/modules/node/src/Entity/NodeType.php
@@ -186,7 +186,7 @@ class NodeType extends ConfigEntityBundleBase implements NodeTypeInterface {
if ($update && $this->getOriginalId() != $this->id()) {
$update_count = node_type_update_nodes($this->getOriginalId(), $this->id());
if ($update_count) {
- drupal_set_message(\Drupal::translation()->formatPlural($update_count,
+ \Drupal::messenger()->addStatus(\Drupal::translation()->formatPlural($update_count,
'Changed the content type of 1 post from %old-type to %type.',
'Changed the content type of @count posts from %old-type to %type.',
[