Upgrade the CmsCollector module
Edit on GitHubUpgrading from version 1.* to version 2.*
Upgrade the spryker/cms module to at least 6.2 version. See Upgrade the CMS module for more details.
Upgrade the spryker/cms-content-widget module to at least 1.1 version if you use CmsPageCollectorParameterMapExpanderPlugin plugin.
CMS page data expander plugins are applied by the spryker/cms module instead of the spryker/cms-collector module:
- Amend your custom CMS page collector data expander plugins to use
CmsPageDataExpanderPluginInterfaceplugin interface instead of the deprecatedCmsPageCollectorDataExpanderPluginInterfaceplugin interface. - If you use
CmsPageCollectorParameterMapExpanderPluginplugin, replace it withCmsPageParameterMapExpanderPluginplugin. - Register your CMS page data expander plugins to
spryker/cmsmodule in theCmsDependencyProviderdependency provider.
Example of CMS data expander plugin registration
<?php
namespace Pyz\Zed\Cms;
use Spryker\Zed\Cms\CmsDependencyProvider as SprykerCmsDependencyProvider;
use Spryker\Zed\CmsContentWidget\Communication\Plugin\CmsPageDataExpander\CmsPageParameterMapExpanderPlugin;
class CmsDependencyProvider extends SprykerCmsDependencyProvider
{
/**
* @return \Spryker\Zed\Cms\Dependency\Plugin\CmsPageDataExpanderPluginInterface[]
*/
protected function getCmsPageDataExpanderPlugins()
{
return [
new CmsPageParameterMapExpanderPlugin(),
];
}
}
- Remove deprecated CMS page collector data expander plugin registrations from
spryker/cms-collectormodule’s dependency provider inCmsCollectorDependencyProvider.
Thank you!
For submitting the form