Skip to content
Snippets Groups Projects
Commit 6328d1a8 authored by JD Leonard's avatar JD Leonard Committed by mxh
Browse files

Issue #3381124 by jdleonard: Use bundle label in storage form title

parent cee36c4d
Branches 1.3.x
Tags 1.3.1
2 merge requests!13Draft: Issue #3447073 by yohansenso: Per-bundle view permissions are not checked for unpublished entities,!8Use bundle label on storage form
......@@ -51,9 +51,14 @@ class StorageForm extends ContentEntityForm {
];
}
if ($this->operation == 'edit') {
if ($this->operation == 'add') {
$form['#title'] = $this->t('Add @type', [
'@type' => $bundle->label(),
]);
}
elseif ($this->operation == 'edit') {
$form['#title'] = $this->t('<em>Edit @type</em> @name', [
'@type' => $entity->bundle(),
'@type' => $bundle->label(),
'@name' => $entity->label(),
]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment