Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Boolean.php
Go to the documentation of this file.
1 <?php
9 
10 class Boolean extends Select
11 {
18  protected function _getOptionText($value)
19  {
20  switch ($value) {
21  case '0':
22  $text = __('No');
23  break;
24  case '1':
25  $text = __('Yes');
26  break;
27  default:
28  $text = '';
29  break;
30  }
31  return $text;
32  }
33 }
__()
Definition: __.php:13
endifif( $block->getLastPageNum()>1)( 'Page') ?></strong >< ul class $text
Definition: pager.phtml:43
$value
Definition: gender.phtml:16