admingws.xml 1.2 KB

1234567891011121314151617181920212223
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © 2015-2017 Ihor Vansach (ihor@magefan.com). All rights reserved.
  5. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  6. *
  7. * Glory to Ukraine! Glory to the heroes!
  8. */
  9. -->
  10. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_AdminGws:etc/admingws.xsd">
  11. <group name="collection_load_before" processor="Magento\AdminGws\Model\Collections">
  12. <callback class="Magefan\Blog\Model\ResourceModel\Post\Collection" method="addStoreFilter" />
  13. <callback class="Magefan\Blog\Model\ResourceModel\Category\Collection" method="addStoreFilter" />
  14. </group>
  15. <group name="model_save_before" processor="Magento\AdminGws\Model\Models">
  16. <callback class="Magefan\Blog\Model\Post" method="cmsPageSaveBefore" />
  17. <callback class="Magefan\Blog\Model\Category" method="cmsPageSaveBefore" />
  18. </group>
  19. <group name="model_delete_before" processor="Magento\AdminGws\Model\Models">
  20. <callback class="Magefan\Blog\Model\Post" method="cmsPageDeleteBefore" />
  21. <callback class="Magefan\Blog\Model\Category" method="cmsPageDeleteBefore" />
  22. </group>
  23. </config>