Boolean.php 608 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Customer Widget Form Boolean Element Block
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Customer\Block\Adminhtml\Form\Element;
  12. class Boolean extends \Magento\Framework\Data\Form\Element\Select
  13. {
  14. /**
  15. * Prepare default SELECT values
  16. * @return void
  17. */
  18. protected function _construct()
  19. {
  20. parent::_construct();
  21. $this->setValues([['label' => __('No'), 'value' => '0'], ['label' => __('Yes'), 'value' => 1]]);
  22. }
  23. }