Scopes.php 827 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Catalog\Model\Attribute\Source;
  7. use \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface;
  8. class Scopes implements \Magento\Framework\Data\OptionSourceInterface
  9. {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public function toOptionArray()
  14. {
  15. return [
  16. [
  17. 'value' => ScopedAttributeInterface::SCOPE_STORE,
  18. 'label' => __('Store View'),
  19. ],
  20. [
  21. 'value' => ScopedAttributeInterface::SCOPE_WEBSITE,
  22. 'label' => __('Web Site'),
  23. ],
  24. [
  25. 'value' => ScopedAttributeInterface::SCOPE_GLOBAL,
  26. 'label' => __('Global'),
  27. ],
  28. ];
  29. }
  30. }