Skip to content

Commit

Permalink
Merge pull request #92 from konarshankar07/added-missing-page-title--…
Browse files Browse the repository at this point in the history
…task-73

#73 :- Page title is empty when admin login as customer
  • Loading branch information
naydav authored Apr 25, 2020
2 parents bb6103e + 3b838b8 commit e72015b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/code/Magento/LoginAsCustomer/Controller/Login/Proceed.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
declare(strict_types=1);
namespace Magento\LoginAsCustomer\Controller\Login;

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

0 comments on commit e72015b

Please sign in to comment.