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 6
6
namespace Magento \AdminNotification \Controller \Adminhtml \Notification ;
7
7
8
8
use Magento \Framework \App \Action \HttpGetActionInterface as HttpGetActionInterface ;
9
+ use Magento \Framework \View \Result \Page ;
9
10
10
11
class Index extends \Magento \AdminNotification \Controller \Adminhtml \Notification implements HttpGetActionInterface
11
12
{
@@ -14,14 +15,14 @@ class Index extends \Magento\AdminNotification\Controller\Adminhtml\Notification
14
15
*/
15
16
public function execute ()
16
17
{
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 (
21
22
__ ('Messages Inbox ' ),
22
23
__ ('Messages Inbox ' )
23
24
);
24
- $ this -> _view -> getPage () ->getConfig ()->getTitle ()->prepend (__ ('Notifications ' ));
25
- $ this -> _view -> renderLayout () ;
25
+ $ resultPage ->getConfig ()->getTitle ()->prepend (__ ('Notifications ' ));
26
+ return $ resultPage ;
26
27
}
27
28
}
You can’t perform that action at this time.
0 commit comments