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-import-export
Model
Source
Import
AbstractBehavior.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\ImportExport\Model\Source\Import
;
7
14
abstract
class
AbstractBehavior
implements
\Magento\Framework\Option\ArrayInterface
15
{
22
abstract
public
function
toArray
();
23
29
public
function
toOptionArray
()
30
{
31
$optionArray = [[
'label'
=>
__
(
'-- Please Select --'
),
'value'
=>
''
]];
32
$options
= $this->
toArray
();
33
if
(is_array(
$options
) && count(
$options
) > 0) {
34
foreach
(
$options
as
$value
=>
$label
) {
35
$optionArray[] = [
'label'
=>
$label
,
'value'
=>
$value
];
36
}
37
}
38
return
$optionArray;
39
}
40
47
abstract
public
function
getCode
();
48
56
public
function
getNotes
($entityCode)
57
{
58
return
[];
59
}
60
}
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\ImportExport\Model\Source\Import\AbstractBehavior\toOptionArray
toOptionArray()
Definition:
AbstractBehavior.php:29
$label
$label
Definition:
details.phtml:21
$value
$value
Definition:
gender.phtml:16
Magento\ImportExport\Model\Source\Import\AbstractBehavior
Definition:
AbstractBehavior.php:14
Magento\ImportExport\Model\Source\Import\AbstractBehavior\getCode
getCode()
Magento\ImportExport\Model\Source\Import\AbstractBehavior\getNotes
getNotes($entityCode)
Definition:
AbstractBehavior.php:56
Magento\ImportExport\Model\Source\Import
Definition:
EntityTest.php:10
Magento\ImportExport\Model\Source\Import\AbstractBehavior\toArray
toArray()
$options
$options
Definition:
multiple_mixed_products.php:29