Edit on GitHub

Plugins and Support for ExtJS 6 and ExtJS 3.4

It is quite ease for a plugin to support both (ExtJS 6 and ExtJS 3.4) versions at the same time.

Usually, you register your source JS and CSS files via the plugin.xml by specifying them in the <pluginJsPaths> and <pluginCssPaths> sections.



What's new is that Pimcore 4 is that, if running in modern ExtJS 6 mode, it will first check the existence of the <pluginJsPaths-extjs6> and <pluginCssPaths-extjs6> sections and if found prefer them over the standard ones.



After that it will always fallback to the standard scenario. So the typical way to migrate you plugin while still keep the 3.4 version working is to provide both sections and then just git rid of the extjs6 section when done.

There is also a PHP-side switch. You can find out whether you are running Pimcore in modern mode by calling. \Pimcore\Tool\Admin::isExtJS6().