File tree 1 file changed +4
-7
lines changed
app/code/Magento/CmsUrlRewrite/Plugin/Cms/Model/Store 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -65,21 +65,18 @@ public function __construct(
65
65
* Replace cms page url rewrites on store view save
66
66
*
67
67
* @param ResourceStore $object
68
- * @param \Closure $proceed
69
- * @param AbstractModel $store
70
- * @return mixed
68
+ * @param ResourceStore $result
69
+ * @param ResourceStore $store
70
+ * @return void
71
71
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
72
72
*/
73
- public function aroundSave (ResourceStore $ object , \ Closure $ proceed , AbstractModel $ store )
73
+ public function afterSave (ResourceStore $ object , ResourceStore $ result , AbstractModel $ store ): void
74
74
{
75
- $ result = $ proceed ($ store );
76
75
if ($ store ->isObjectNew () || $ store ->dataHasChangedFor ('group_id ' )) {
77
76
$ this ->urlPersist ->replace (
78
77
$ this ->generateCmsPagesUrls ((int )$ store ->getId ())
79
78
);
80
79
}
81
-
82
- return $ result ;
83
80
}
84
81
85
82
/**
You can’t perform that action at this time.
0 commit comments