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-page-cache
Model
System
Config
Source
Application.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\PageCache\Model\System\Config\Source
;
11
12
use
Magento\Framework\Option\ArrayInterface
;
13
use
Magento\PageCache\Model\Config
;
14
18
class
Application
implements
ArrayInterface
19
{
25
public
function
toOptionArray
()
26
{
27
return
[
28
[
29
'value'
=>
Config::BUILT_IN
,
30
'label'
=>
__
(
'Built-in Cache'
)
31
],
32
[
33
'value'
=>
Config::VARNISH
,
34
'label'
=>
__
(
'Varnish Cache (Recommended)'
)
35
]
36
];
37
}
38
44
public
function
toArray
()
45
{
46
return
[
47
Config::BUILT_IN
=>
__
(
'Built-in Cache'
),
48
Config::VARNISH
=>
__
(
'Varnish Cache (Recommended)'
)
49
];
50
}
51
}
Magento\PageCache\Model\System\Config\Source\Application
Definition:
Application.php:18
Magento\PageCache\Model\Config\VARNISH
const VARNISH
Definition:
Config.php:28
Magento\PageCache\Model\System\Config\Source
Definition:
Application.php:10
Magento\PageCache\Model\System\Config\Source\Application\toOptionArray
toOptionArray()
Definition:
Application.php:25
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\PageCache\Model\Config
Definition:
Config.php:21
Magento\PageCache\Model\System\Config\Source\Application\toArray
toArray()
Definition:
Application.php:44
Magento\PageCache\Model\Config\BUILT_IN
const BUILT_IN
Definition:
Config.php:26