_groupManagement = $groupManagement; $this->_converter = $converter; $this->groupSourceLoggedInOnly = $groupSourceLoggedInOnly ?: ObjectManager::getInstance()->get(GroupSourceLoggedInOnlyInterface::class); } /** * Retrieve customer groups as array * * @return array */ public function toOptionArray() { if (!$this->_options) { $this->_options = $this->groupSourceLoggedInOnly->toOptionArray(); } return $this->_options; } }