27 $this->_notificationFactory = $notificationFactory;
39 $notification = $this->_notificationFactory->create();
40 $notification->load($notificationId);
41 if (!$notification->getId()) {
42 throw new \Magento\Framework\Exception\LocalizedException(
__(
'Wrong notification ID specified.'));
44 $notification->setIsRead(1);
45 $notification->save();
__construct(\Magento\AdminNotification\Model\InboxFactory $notificationFactory)
markAsRead($notificationId)