Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Nooptreq.php
Go to the documentation of this file.
1 <?php
7 
13 {
14  const VALUE_NO = '';
15  const VALUE_OPTIONAL = 'opt';
16  const VALUE_REQUIRED = 'req';
17 
21  public function toOptionArray()
22  {
23  return [
24  ['value' => self::VALUE_NO, 'label' => __('No')],
25  ['value' => self::VALUE_OPTIONAL, 'label' => __('Optional')],
26  ['value' => self::VALUE_REQUIRED, 'label' => __('Required')]
27  ];
28  }
29 }
__()
Definition: __.php:13