diff --git a/src/Resources/public/js/pimcore/perspective/events.js b/src/Resources/public/js/pimcore/perspective/events.js index 990ba80..1f31a5d 100644 --- a/src/Resources/public/js/pimcore/perspective/events.js +++ b/src/Resources/public/js/pimcore/perspective/events.js @@ -25,12 +25,11 @@ pimcore.events.onPerspectiveEditorLoadStructureForPermissions = "pimcore.perspec -//TODO: delete in Pimcore11 and update dependency in composer.json +//TODO: delete once support for Pimcore 10.6 is dropped if(typeof addEventListenerCompatibilityForPlugins === "function") { let eventMappings = []; eventMappings["onPerspectiveEditorLoadPermissions"] = pimcore.events.onPerspectiveEditorLoadPermissions; eventMappings["onPerspectiveEditorLoadStructureForPermissions"] = pimcore.events.onPerspectiveEditorLoadStructureForPermissions; addEventListenerCompatibilityForPlugins(eventMappings); -} else { - console.error("Delete addEventListenerCompatibilityForPlugins in the perspective-editor") + console.warn("Deprecation: addEventListenerCompatibilityForPlugins will be not supported in Pimcore 11."); }