39 $this->_groupManagement = $groupManagement;
40 $this->_converter = $converter;
41 parent::__construct($attrOptionCollectionFactory, $attrOptionFactory);
47 public function getAllOptions($withEmpty =
true, $defaultValues =
false)
49 if (!$this->_options) {
50 $groups = $this->_groupManagement->getLoggedInGroups();
51 $this->_options = $this->_converter->toOptionArray($groups,
'id',
'code');
__construct(\Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\CollectionFactory $attrOptionCollectionFactory, \Magento\Eav\Model\ResourceModel\Entity\Attribute\OptionFactory $attrOptionFactory, GroupManagementInterface $groupManagement, \Magento\Framework\Convert\DataObject $converter)
getAllOptions($withEmpty=true, $defaultValues=false)