13 class Website extends \Magento\Eav\Model\Entity\Attribute\Source\Table
30 parent::__construct($attrOptionCollectionFactory, $attrOptionFactory);
37 public function getAllOptions($withEmpty =
true, $defaultValues =
false)
39 if (!$this->_options) {
40 $this->_options = $this->_store->getWebsiteValuesForForm();
52 if (!$this->_options) {
55 foreach ($this->_options as
$option) {
getAllOptions($withEmpty=true, $defaultValues=false)
__construct(\Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\CollectionFactory $attrOptionCollectionFactory, \Magento\Eav\Model\ResourceModel\Entity\Attribute\OptionFactory $attrOptionFactory, \Magento\Store\Model\System\Store $store)