urlModel = $urlFactory->create(); $this->session = $session; $this->customerLink = $customerLink; } protected function _prepareLayout() { parent::_prepareLayout(); if (!$this->getTemplate()) { $this->setTemplate('widget/resetpassword.phtml'); } return $this; } public function displayAmazonInfo() { $id = $this->session->getCustomer()->getId(); $amazon = $this->customerLink->get($id); if ($amazon && $amazon->getAmazonId()) { return true; } return false; } public function getLink() { $url = $this->urlModel->getUrl('customer/account/forgotpassword'); return $url; } }