Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_jobs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
TYPO3
sg_jobs
Commits
fdc53f04
Commit
fdc53f04
authored
3 years ago
by
Matthias Adrowski
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Migrate BE Controller
parent
25895db9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!35
Feature upgrade to typo3 11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Controller/BackendController.php
+19
-1
19 additions, 1 deletion
Classes/Controller/BackendController.php
with
19 additions
and
1 deletion
Classes/Controller/BackendController.php
+
19
−
1
View file @
fdc53f04
...
@@ -85,7 +85,7 @@ class BackendController extends ActionController {
...
@@ -85,7 +85,7 @@ class BackendController extends ActionController {
* @param array $filters
* @param array $filters
* @return void
* @return void
*/
*/
public
function
indexAction
(
array
$filters
=
[]):
void
{
public
function
indexAction
(
array
$filters
=
[]):
?
\Psr\Http\Message\ResponseInterface
{
$pageUid
=
(
int
)
GeneralUtility
::
_GP
(
'id'
);
$pageUid
=
(
int
)
GeneralUtility
::
_GP
(
'id'
);
// create docheader + buttons
// create docheader + buttons
...
@@ -140,5 +140,23 @@ class BackendController extends ActionController {
...
@@ -140,5 +140,23 @@ class BackendController extends ActionController {
LocalizationUtility
::
translate
(
'backend.notice.noRecords'
,
'SgJobs'
),
''
,
FlashMessage
::
INFO
LocalizationUtility
::
translate
(
'backend.notice.noRecords'
,
'SgJobs'
),
''
,
FlashMessage
::
INFO
);
);
}
}
if
(
version_compare
(
\TYPO3\CMS\Core\Utility\VersionNumberUtility
::
getCurrentTypo3Version
(),
'11.0.0'
,
'<'
))
{
return
NULL
;
}
else
{
return
$this
->
createBackendResponse
();
}
}
/**
* Use the ModuleTemplateResponse to create a response object for the backend
*
* @return \Psr\Http\Message\ResponseInterface
*/
protected
function
createBackendResponse
():
\Psr\Http\Message\ResponseInterface
{
$moduleTemplate
=
$this
->
moduleTemplateFactory
->
create
(
$this
->
request
);
$moduleTemplate
->
setContent
(
$this
->
view
->
render
());
return
$this
->
htmlResponse
(
$moduleTemplate
->
renderContent
());
}
}
}
}
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