RadioSet.php 572 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Ui\Component\Form\Element;
  7. /**
  8. * @api
  9. * @since 100.1.0
  10. */
  11. class RadioSet extends AbstractOptionsField
  12. {
  13. const NAME = 'radioset';
  14. /**
  15. * {@inheritdoc}
  16. * @since 100.1.0
  17. */
  18. public function getComponentName()
  19. {
  20. return static::NAME;
  21. }
  22. /**
  23. * {@inheritdoc}
  24. * @since 100.1.0
  25. */
  26. public function getIsSelected($optionValue)
  27. {
  28. return $this->getValue() == $optionValue;
  29. }
  30. }