Collection.php 683 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * AdminNotification Inbox model
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\AdminNotification\Model\ResourceModel\Grid;
  12. /**
  13. * @api
  14. * @since 100.0.2
  15. */
  16. class Collection extends \Magento\AdminNotification\Model\ResourceModel\Inbox\Collection
  17. {
  18. /**
  19. * Add remove filter
  20. *
  21. * @return Collection|\Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
  22. */
  23. protected function _initSelect()
  24. {
  25. parent::_initSelect();
  26. $this->addRemoveFilter();
  27. return $this;
  28. }
  29. }