Skip to content

Commit e72015b

Browse files
authored
Merge pull request #92 from konarshankar07/added-missing-page-title--task-73
#73 :- Page title is empty when admin login as customer
2 parents bb6103e + 3b838b8 commit e72015b

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/LoginAsCustomer/Controller/Login

1 file changed

+4
-0
lines changed

app/code/Magento/LoginAsCustomer/Controller/Login/Proceed.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
declare(strict_types=1);
77
namespace Magento\LoginAsCustomer\Controller\Login;
88

9+
use Magento\Backend\Model\View\Result\Page;
910
use Magento\Framework\Controller\ResultFactory;
1011
use Magento\Framework\Controller\ResultInterface;
1112
use Magento\Framework\App\Action\HttpGetActionInterface;
@@ -24,6 +25,9 @@ class Proceed extends Action implements HttpGetActionInterface
2425
*/
2526
public function execute():ResultInterface
2627
{
28+
/** @var Page $resultPage */
29+
$resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
30+
$resultPage->getConfig()->getTitle()->set(__("You are logged in"));
2731
return $this->resultFactory->create(ResultFactory::TYPE_PAGE);
2832
}
2933
}

0 commit comments

Comments
 (0)