Skip to content
Snippets Groups Projects
Verified Commit 0c1f9eee authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Add deprecation message for old PluginRenderer

parent e968ad3d
No related branches found
No related tags found
1 merge request!3Feature upgrade to typo3 11
...@@ -32,6 +32,7 @@ use TYPO3\CMS\Fluid\View\StandaloneView; ...@@ -32,6 +32,7 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
* Renders back-end preview for the SG Vimeo Videos plugin * Renders back-end preview for the SG Vimeo Videos plugin
* *
* @package SGalinski\SgVimeo\Hooks * @package SGalinski\SgVimeo\Hooks
* @deprecated All of this class will be removed when TYPO3 10 support is dropped
*/ */
class PluginRenderer implements PageLayoutViewDrawItemHookInterface { class PluginRenderer implements PageLayoutViewDrawItemHookInterface {
/** /**
...@@ -44,6 +45,7 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface { ...@@ -44,6 +45,7 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface {
* @param array $row Record row of tt_content * @param array $row Record row of tt_content
* @return void * @return void
* @noinspection ReferencingObjectsInspection * @noinspection ReferencingObjectsInspection
* @deprecated All of this class will be removed when TYPO3 10 support is dropped
*/ */
public function preProcess( public function preProcess(
PageLayoutView &$parentObject, PageLayoutView &$parentObject,
...@@ -52,6 +54,11 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface { ...@@ -52,6 +54,11 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface {
&$itemContent, &$itemContent,
array &$row array &$row
): void { ): 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') { if ($row['list_type'] === 'sgvimeo_vimeo') {
$drawItem = FALSE; $drawItem = FALSE;
......
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