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)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-fedex
Model
Source
Generic.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Fedex\Model\Source
;
7
8
class
Generic
implements
\Magento\Framework\Option\ArrayInterface
9
{
13
protected
$_shippingFedex
;
14
20
protected
$_code
=
''
;
21
25
public
function
__construct
(\
Magento
\Fedex\Model\
Carrier
$shippingFedex)
26
{
27
$this->_shippingFedex = $shippingFedex;
28
}
29
35
public
function
toOptionArray
()
36
{
37
$configData
= $this->_shippingFedex->getCode($this->_code);
38
$arr = [];
39
foreach
(
$configData
as
$code
=>
$title
) {
40
$arr[] = [
'value'
=>
$code
,
'label'
=>
$title
];
41
}
42
return
$arr;
43
}
44
}
$title
$title
Definition:
default.phtml:14
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Fedex\Model\Source\Generic\$_code
$_code
Definition:
Generic.php:20
Magento\Fedex\Model\Source
Definition:
UnitofmeasureTest.php:7
Magento\Fedex\Model\Carrier
Definition:
Carrier.php:25
Magento\Fedex\Model\Source\Generic
Definition:
Generic.php:8
$configData
$configData
Definition:
payment_configuration.php:26
Magento
Magento\Fedex\Model\Source\Generic\$_shippingFedex
$_shippingFedex
Definition:
Generic.php:13
Magento\Fedex\Model\Source\Generic\__construct
__construct(\Magento\Fedex\Model\Carrier $shippingFedex)
Definition:
Generic.php:25
Magento\Fedex\Model\Source\Generic\toOptionArray
toOptionArray()
Definition:
Generic.php:35
$code
$code
Definition:
info.phtml:12