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-dhl
Model
Source
Contenttype.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Dhl\Model\Source
;
7
11
class
Contenttype
implements
\Magento\Framework\Option\ArrayInterface
12
{
16
public
function
toOptionArray
()
17
{
18
return
[
19
[
'label'
=>
__
(
'Documents'
),
'value'
=>
\Magento\Dhl\Model\Carrier::DHL_CONTENT_TYPE_DOC
],
20
[
'label'
=>
__
(
'Non documents'
),
'value'
=>
\Magento\Dhl\Model\Carrier::DHL_CONTENT_TYPE_NON_DOC
]
21
];
22
}
23
}
Magento\Dhl\Model\Carrier\DHL_CONTENT_TYPE_DOC
const DHL_CONTENT_TYPE_DOC
Definition:
Carrier.php:31
Magento\Dhl\Model\Source\Contenttype\toOptionArray
toOptionArray()
Definition:
Contenttype.php:16
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Dhl\Model\Carrier\DHL_CONTENT_TYPE_NON_DOC
const DHL_CONTENT_TYPE_NON_DOC
Definition:
Carrier.php:32
Magento\Dhl\Model\Source\Contenttype
Definition:
Contenttype.php:11
Magento\Dhl\Model\Source
Definition:
Contenttype.php:6