currentCustomer = $currentCustomer; $this->customerViewHelper = $customerViewHelper; } /** * {@inheritdoc} */ public function getSectionData() { if (!$this->currentCustomer->getCustomerId()) { return []; } $customer = $this->currentCustomer->getCustomer(); return [ 'fullname' => $this->customerViewHelper->getCustomerName($customer), 'firstname' => $customer->getFirstname(), 'websiteId' => $customer->getWebsiteId(), ]; } }