Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Enabledisable.php
Go to the documentation of this file.
1 <?php
7 
14 {
18  const ENABLE_VALUE = 1;
19 
23  const DISABLE_VALUE = 0;
24 
28  public function toOptionArray()
29  {
30  return [
31  ['value' => self::ENABLE_VALUE, 'label' => __('Enable')],
32  ['value' => self::DISABLE_VALUE, 'label' => __('Disable')],
33  ];
34  }
35 }
__()
Definition: __.php:13