Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsk
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
tsk
Commits
5b5b4fe6
Commit
5b5b4fe6
authored
1 year ago
by
Shanu Chouhan
Committed by
Antonín Slejška
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3360086
by Shanu Chouhan: t() calls should be avoided in classes
parent
de021f4d
No related branches found
No related tags found
1 merge request
!1
Issue #3360452: Move the configuration entity to a separate module.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/tsk_all/src/Controller/TskAllController.php
+2
-2
2 additions, 2 deletions
modules/tsk_all/src/Controller/TskAllController.php
modules/tsk_all/src/TskEntityListBuilder.php
+1
-1
1 addition, 1 deletion
modules/tsk_all/src/TskEntityListBuilder.php
with
3 additions
and
3 deletions
modules/tsk_all/src/Controller/TskAllController.php
+
2
−
2
View file @
5b5b4fe6
...
...
@@ -51,7 +51,7 @@ class TskAllController extends ControllerBase {
*/
public
function
kill
(
TskEntity
$tsk_entity
)
{
$this
->
tskService
->
kill
(
$tsk_entity
->
collection
,
$tsk_entity
->
private
,
$tsk_entity
->
kill_all
,
$tsk_entity
->
key
);
$this
->
messenger
()
->
addStatus
(
t
(
'The temporary storage has been deleted.'
));
$this
->
messenger
()
->
addStatus
(
$this
->
t
(
'The temporary storage has been deleted.'
));
return
$this
->
redirect
(
'entity.tsk_entity'
);
}
...
...
@@ -60,7 +60,7 @@ class TskAllController extends ControllerBase {
*/
public
function
killAll
()
{
$this
->
tskService
->
killAll
();
$this
->
messenger
()
->
addStatus
(
t
(
'The temporary storages have been deleted.'
));
$this
->
messenger
()
->
addStatus
(
$this
->
t
(
'The temporary storages have been deleted.'
));
return
$this
->
redirect
(
'entity.tsk_entity'
);
}
...
...
This diff is collapsed.
Click to expand it.
modules/tsk_all/src/TskEntityListBuilder.php
+
1
−
1
View file @
5b5b4fe6
...
...
@@ -97,7 +97,7 @@ class TskEntityListBuilder extends ConfigEntityListBuilder {
$build
[
'kill_all_link'
]
=
[
'#type'
=>
'link'
,
'#url'
=>
$url
,
'#title'
=>
t
(
'Kill all'
),
'#title'
=>
$this
->
t
(
'Kill all'
),
];
return
$build
;
...
...
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