Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-swatches
Model
Form
Element
AbstractSwatch.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Swatches\Model\Form\Element
;
7
8
class
AbstractSwatch
extends
\Magento\Framework\Data\Form\Element\Select
9
{
16
protected
function
getValues
()
17
{
18
$options
= [];
19
$attribute
= $this->
getData
(
'entity_attribute'
);
20
if
(
$attribute
instanceof \
Magento
\Catalog\Model\
ResourceModel
\Eav\
Attribute
) {
21
$options
=
$attribute
->getSource()->getAllOptions(
true
,
true
);
22
}
23
return
$options
;
24
}
25
}
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\Framework\DataObject\getData
getData($key='', $index=null)
Definition:
DataObject.php:119
$attribute
$attribute
Definition:
attribute_set_with_image_attribute.php:41
Magento\Swatches\Model\Form\Element\AbstractSwatch\getValues
getValues()
Definition:
AbstractSwatch.php:16
Magento
Magento\Swatches\Model\Form\Element\AbstractSwatch
Definition:
AbstractSwatch.php:8
Magento\Swatches\Model\Form\Element
Definition:
AbstractSwatch.php:6
Magento\ConfigurableProduct\Model\Product\Type\Configurable\Attribute
Definition:
Attribute.php:18
$options
$options
Definition:
multiple_mixed_products.php:29