58 $this->_helperView = $helperView;
59 parent::__construct($context,
$data);
70 return $this->currentCustomer->getCustomer();
83 return $this->_helperView->getCustomerName($this->
getCustomer());
91 return $this->_urlBuilder->getUrl(
'customer/account/edit/changepass/1');
101 if (!$this->_subscription) {
105 $this->_subscription->loadByCustomerId(
$customer->getId());
132 ->isNewsletterEnabled();
140 return $this->_subscriberFactory->create();
148 return $this->currentCustomer->getCustomerId() ? parent::_toHtml() :
'';
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, \Magento\Customer\Helper\View $helperView, array $data=[])