Verified Commit 43ea4e80 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2410739 by maliknaik, daffie: Call to label() in the wrong place in NodeDeleteForm

parent 0891913c
......@@ -19,18 +19,18 @@ protected function getDeletionMessage() {
$entity = $this->getEntity();
$node_type_storage = $this->entityTypeManager->getStorage('node_type');
$node_type = $node_type_storage->load($entity->bundle())->label();
$node_type = $node_type_storage->load($entity->bundle());
if (!$entity->isDefaultTranslation()) {
return $this->t('@language translation of the @type %label has been deleted.', [
'@language' => $entity->language()->getName(),
'@type' => $node_type,
'@type' => $node_type->label(),
'%label' => $entity->label(),
]);
}
return $this->t('The @type %title has been deleted.', [
'@type' => $node_type,
'@type' => $node_type->label(),
'%title' => $this->getEntity()->label(),
]);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment