Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Application.php
Go to the documentation of this file.
1 <?php
11 
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 }
__()
Definition: __.php:13