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-translation
Model
Js
Config
Source
Strategy.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Translation\Model\Js\Config\Source
;
7
8
use
Magento\Translation\Model\Js\Config
;
9
10
class
Strategy
implements
\Magento\Framework\Option\ArrayInterface
11
{
15
public
function
toOptionArray
()
16
{
17
return
[
18
[
'label'
=>
__
(
'Dictionary (Translation on Storefront side)'
),
'value'
=>
Config::DICTIONARY_STRATEGY
],
19
[
'label'
=>
__
(
'Embedded (Translation on Admin side)'
),
'value'
=>
Config::EMBEDDED_STRATEGY
]
20
];
21
}
22
}
Magento\Translation\Model\Js\Config\DICTIONARY_STRATEGY
const DICTIONARY_STRATEGY
Definition:
Config.php:29
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Translation\Model\Js\Config\Source\Strategy\toOptionArray
toOptionArray()
Definition:
Strategy.php:15
Magento\Translation\Model\Js\Config\Source\Strategy
Definition:
Strategy.php:10
Magento\Translation\Model\Js\Config\EMBEDDED_STRATEGY
const EMBEDDED_STRATEGY
Definition:
Config.php:24
Magento\Translation\Model\Js\Config
Magento\Translation\Model\Js\Config\Source
Definition:
Strategy.php:6