_groupManagement = $groupManagement; $this->_converter = $converter; $this->groupSourceLoggedInOnly = $groupSourceForLoggedInCustomers ?: ObjectManager::getInstance()->get(GroupSourceLoggedInOnlyInterface::class); } /** * @inheritdoc */ public function toOptionArray() { if (!$this->_options) { $this->_options = $this->groupSourceLoggedInOnly->toOptionArray(); array_unshift($this->_options, ['value' => '', 'label' => __('-- Please Select --')]); } return $this->_options; } }