我有问题,因为第三方模块有插件aroundGetMediaAttributes类Magento\框架\配置\视图与sortOrder=10。这个插件修改图像大小。我需要阻止这个插件,并从核心函数返回结果,但我不知道怎么做。此外,我需要区块自定义插件只在某些情况下,并不总是。我用更高的sortOrder创建了第二个插件aroundGetMediaAttributes,并从callable返回结果,但仍然有错误的图像大小。我怎么才能修复它?
发布于 2021-08-10 09:40:01
您可以通过名称禁用插件:
<type name="Vendor\Module\Path\To\Class">
<plugin name="plugin_name" disabled="true" />
</type>https://stackoverflow.com/questions/68611985
复制相似问题