Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Unread.php
Go to the documentation of this file.
1 <?php
13 
18 class Unread extends \Magento\AdminNotification\Model\ResourceModel\Inbox\Collection
19 {
25  protected function _initSelect()
26  {
27  parent::_initSelect();
28  $this->addFilter('is_remove', 0);
29  $this->addFilter('is_read', 0);
30  $this->setOrder('date_added');
31  return $this;
32  }
33 }
addFilter($field, $value, $type='and')
Definition: Collection.php:118
setOrder($field, $direction=self::SORT_ORDER_DESC)
Definition: AbstractDb.php:274