52 $this->session = $customerSession;
56 parent::__construct($context);
67 $resultPage = $this->resultPageFactory->create();
69 $block = $resultPage->getLayout()->getBlock(
'customer_edit');
74 $data = $this->session->getCustomerFormData(
true);
76 $customerDataObject = $this->customerRepository->getById(
$customerId);
78 $this->dataObjectHelper->populateWithArray(
81 \
Magento\Customer\Api\Data\CustomerInterface::class
84 $this->session->setCustomerData($customerDataObject);
85 $this->session->setChangePassword($this->
getRequest()->getParam(
'changepass') == 1);
87 $resultPage->getConfig()->getTitle()->set(
__(
'Account Information'));
_redirect($path, $arguments=[])
__construct(Context $context, Session $customerSession, PageFactory $resultPageFactory, CustomerRepositoryInterface $customerRepository, DataObjectHelper $dataObjectHelper)