Events 用于发布版本的Pimcore事件

Events 用于发布版本的Pimcore事件,events,extjs,overriding,pimcore,Events,Extjs,Overriding,Pimcore,我们是否有在pimcore 3中发布以前版本的活动? 在插件中,我可以使用以下代码使用extjs startup.js覆盖它 pimcoreReady: function (params, broker) { Ext.override(pimcore.object.versions, { publishVersion: function (index, grid) { //code goes here } }); }

我们是否有在pimcore 3中发布以前版本的活动? 在插件中,我可以使用以下代码使用extjs startup.js覆盖它

 pimcoreReady: function (params, broker) {
    Ext.override(pimcore.object.versions, {
        publishVersion: function (index, grid) {
            //code goes here
        }
    });
 }
但我想覆盖不同插件中不同类的发布版本。但如果我这样做,只有一个覆盖按预期工作。 我是否可以设置基于类的条件,例如,如果我的类是abc,那么是否可以重写

if(class == 'abc'){
 Ext.override(pimcore.object.versions, {
            publishVersion: function (index, grid) {
                //code goes here
             }
      });
 }
或任何其他克服这一问题的建议

所有建议将不胜感激

提前谢谢