Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Yesno.php
Go to the documentation of this file.
1 <?php
7 
13 {
19  public function toOptionArray()
20  {
21  return [['value' => 1, 'label' => __('Yes')], ['value' => 0, 'label' => __('No')]];
22  }
23 
29  public function toArray()
30  {
31  return [0 => __('No'), 1 => __('Yes')];
32  }
33 }
__()
Definition: __.php:13