예제 #1
0
 /**
  * Init collection select
  *
  * @return \Magento\AdminNotification\Model\Resource\Inbox\Collection\Unread
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->addFilter('is_remove', 0);
     $this->addFilter('is_read', 0);
     $this->setOrder('date_added');
     return $this;
 }
예제 #2
0
 /**
  * Add remove filter
  *
  * @return \Magento\AdminNotification\Model\Resource\Grid\Collection|\Magento\Framework\Model\Resource\Db\Collection\AbstractCollection
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->addRemoveFilter();
     return $this;
 }