Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
storage
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
storage
Commits
6328d1a8
Commit
6328d1a8
authored
1 year ago
by
JD Leonard
Committed by
mxh
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3381124
by jdleonard: Use bundle label in storage form title
parent
cee36c4d
Branches
1.3.x
Branches containing commit
Tags
1.3.1
Tags containing commit
2 merge requests
!13
Draft: Issue #3447073 by yohansenso: Per-bundle view permissions are not checked for unpublished entities
,
!8
Use bundle label on storage form
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/StorageForm.php
+7
-2
7 additions, 2 deletions
src/Form/StorageForm.php
with
7 additions
and
2 deletions
src/Form/StorageForm.php
+
7
−
2
View file @
6328d1a8
...
...
@@ -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
(),
]);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment