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
7 
13 class Boolean extends \Magento\Eav\Model\Attribute\Data\Select
14 {
21  protected function _getOptionText($value)
22  {
23  switch ($value) {
24  case '0':
25  $text = __('No');
26  break;
27  case '1':
28  $text = __('Yes');
29  break;
30  default:
31  $text = '';
32  break;
33  }
34  return $text;
35  }
36 }
__()
Definition: __.php:13
endifif( $block->getLastPageNum()>1)( 'Page') ?></strong >< ul class $text
Definition: pager.phtml:43
$value
Definition: gender.phtml:16