customerSession = $customerSession; $this->sourceCustomerRepository = $sourceCustomerRepository; parent::__construct($context, $data); } /** * @return \Lts\Inventory\Api\Data\SourceCustomerInterface[] * @throws LocalizedException */ public function getInventorySources() { return $this->sourceCustomerRepository->getList((string)$this->customerSession->getCustomerId())->getItems(); } }