50 parent::__construct($context,
$data);
51 $this->_notificationList = $notificationList;
81 return $this->_notificationList->getSize();
91 return $this->_notificationList->setPageSize(self::NOTIFICATIONS_NUMBER);
102 $date = new \DateTime($dateString);
103 if ($date ==
new \DateTime(
'today')) {
104 return $this->_localeDate->formatDateTime(
106 \IntlDateFormatter::NONE,
107 \IntlDateFormatter::SHORT
110 return $this->_localeDate->formatDateTime(
112 \IntlDateFormatter::MEDIUM,
113 \IntlDateFormatter::MEDIUM
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\AdminNotification\Model\ResourceModel\Inbox\Collection\Unread $notificationList, array $data=[])
getNotificationCounterMax()
const NOTIFICATIONS_COUNTER_MAX
const NOTIFICATION_DESCRIPTION_LENGTH
getLatestUnreadNotifications()
const NOTIFICATIONS_NUMBER
getNotificationDescriptionLength()
getUnreadNotificationCount()
formatNotificationDate($dateString)