File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
app/code/Magento/AdminNotification/Controller/Adminhtml/Notification Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 66namespace Magento \AdminNotification \Controller \Adminhtml \Notification ;
77
88use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
9+ use Magento \Framework \View \Result \Page ;
910
1011class Index extends \Magento \AdminNotification \Controller \Adminhtml \Notification implements HttpGetActionInterface
1112{
@@ -14,14 +15,14 @@ class Index extends \Magento\AdminNotification\Controller\Adminhtml\Notification
1415 */
1516 public function execute ()
1617 {
17- $ this -> _view -> loadLayout ();
18- $ this ->_setActiveMenu (
19- 'Magento_AdminNotification::system_adminnotification '
20- )-> _addBreadcrumb (
18+ /** @var Page $resultPage */
19+ $ resultPage = $ this ->resultFactory -> create (\ Magento \ Framework \ Controller \ResultFactory:: TYPE_PAGE );
20+ $ resultPage -> setActiveMenu ( 'Magento_AdminNotification::system_adminnotification ' );
21+ $ resultPage -> addBreadcrumb (
2122 __ ('Messages Inbox ' ),
2223 __ ('Messages Inbox ' )
2324 );
24- $ this -> _view -> getPage () ->getConfig ()->getTitle ()->prepend (__ ('Notifications ' ));
25- $ this -> _view -> renderLayout () ;
25+ $ resultPage ->getConfig ()->getTitle ()->prepend (__ ('Notifications ' ));
26+ return $ resultPage ;
2627 }
2728}
You can’t perform that action at this time.
0 commit comments