persistentSession = $persistentSession; $this->customerViewHelper = $customerViewHelper; $this->customerRepository = $customerRepository; } /** * Get data. * * @return array */ public function getSectionData(): array { if (!$this->persistentSession->isPersistent()) { return []; } $customerId = $this->persistentSession->getSession()->getCustomerId(); if (!$customerId) { return []; } $customer = $this->customerRepository->getById($customerId); return [ 'fullname' => $this->customerViewHelper->getCustomerName($customer), ]; } }