1234567891011121314151617181920212223 |
- <?xml version="1.0"?>
- <!--
- /**
- * Copyright © 2015-2017 Ihor Vansach (ihor@magefan.com). All rights reserved.
- * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
- *
- * Glory to Ukraine! Glory to the heroes!
- */
- -->
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_AdminGws:etc/admingws.xsd">
- <group name="collection_load_before" processor="Magento\AdminGws\Model\Collections">
- <callback class="Magefan\Blog\Model\ResourceModel\Post\Collection" method="addStoreFilter" />
- <callback class="Magefan\Blog\Model\ResourceModel\Category\Collection" method="addStoreFilter" />
- </group>
- <group name="model_save_before" processor="Magento\AdminGws\Model\Models">
- <callback class="Magefan\Blog\Model\Post" method="cmsPageSaveBefore" />
- <callback class="Magefan\Blog\Model\Category" method="cmsPageSaveBefore" />
- </group>
- <group name="model_delete_before" processor="Magento\AdminGws\Model\Models">
- <callback class="Magefan\Blog\Model\Post" method="cmsPageDeleteBefore" />
- <callback class="Magefan\Blog\Model\Category" method="cmsPageDeleteBefore" />
- </group>
- </config>
|