Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_vimeo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
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_vimeo
Commits
0c1f9eee
Verified
Commit
0c1f9eee
authored
3 years ago
by
Kevin Ditscheid
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Add deprecation message for old PluginRenderer
parent
e968ad3d
No related branches found
No related tags found
1 merge request
!3
Feature upgrade to typo3 11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Hooks/PageLayoutView/PluginRenderer.php
+7
-0
7 additions, 0 deletions
Classes/Hooks/PageLayoutView/PluginRenderer.php
with
7 additions
and
0 deletions
Classes/Hooks/PageLayoutView/PluginRenderer.php
+
7
−
0
View file @
0c1f9eee
...
...
@@ -32,6 +32,7 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
* Renders back-end preview for the SG Vimeo Videos plugin
*
* @package SGalinski\SgVimeo\Hooks
* @deprecated All of this class will be removed when TYPO3 10 support is dropped
*/
class
PluginRenderer
implements
PageLayoutViewDrawItemHookInterface
{
/**
...
...
@@ -44,6 +45,7 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface {
* @param array $row Record row of tt_content
* @return void
* @noinspection ReferencingObjectsInspection
* @deprecated All of this class will be removed when TYPO3 10 support is dropped
*/
public
function
preProcess
(
PageLayoutView
&
$parentObject
,
...
...
@@ -52,6 +54,11 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface {
&
$itemContent
,
array
&
$row
)
:
void
{
trigger_error
(
'Using the old style of rendering backend previews is deprecated and will not longer work when TYPO3 10'
.
' support is dropped! Please switch to using the Fluid Based Page Module instead!'
,
E_USER_DEPRECATED
);
if
(
$row
[
'list_type'
]
===
'sgvimeo_vimeo'
)
{
$drawItem
=
FALSE
;
...
...
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