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-ui
Component
Form
Element
MultiSelect.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ui\Component\Form\Element
;
7
12
class
MultiSelect
extends
AbstractOptionsField
13
{
14
const
NAME
=
'multiselect'
;
15
16
const
DEFAULT_SIZE
= 6;
17
21
public
function
prepare
()
22
{
23
$config
[
'size'
] =
self::DEFAULT_SIZE
;
24
$this->
setData
(
'config'
, array_replace_recursive((array)$this->
getData
(
'config'
),
$config
));
25
parent::prepare();
26
}
27
32
public
function
getComponentName
()
33
{
34
return
static::NAME;
35
}
36
41
public
function
getIsSelected
(
$optionValue
)
42
{
43
return
in_array(
$optionValue
, (array) $this->
getValue
());
44
}
45
}
Magento\Ui\Component\Form\Element\MultiSelect\getComponentName
getComponentName()
Definition:
MultiSelect.php:32
Magento\Ui\Component\Form\Element\AbstractOptionsField
Definition:
AbstractOptionsField.php:15
Magento\Ui\Component\AbstractComponent\getData
getData($key='', $index=null)
Definition:
AbstractComponent.php:264
$config
$config
Definition:
fraud_order.php:17
Magento\Ui\Component\Form\Element\MultiSelect\DEFAULT_SIZE
const DEFAULT_SIZE
Definition:
MultiSelect.php:16
Magento\Ui\Component\AbstractComponent\setData
setData($key, $value=null)
Definition:
AbstractComponent.php:252
Magento\Ui\Component\Form\Element\AbstractElement\getValue
getValue()
Definition:
AbstractElement.php:29
Magento\Ui\Component\Form\Element\MultiSelect\prepare
prepare()
Definition:
MultiSelect.php:21
Magento\Ui\Component\Form\Element\MultiSelect
Definition:
MultiSelect.php:12
Magento\Ui\Component\Form\Element\MultiSelect\getIsSelected
getIsSelected($optionValue)
Definition:
MultiSelect.php:41
$optionValue
$optionValue
Definition:
quote_with_product_and_custom_options.php:9
Magento\Ui\Component\Form\Element
Definition:
AbstractElement.php:6
Magento\Ui\Component\Form\Element\MultiSelect\NAME
const NAME
Definition:
MultiSelect.php:14