Enabled.php 742 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Cms\Model\Config\Source\Wysiwyg;
  7. /**
  8. * Configuration source model for Wysiwyg toggling
  9. */
  10. class Enabled implements \Magento\Framework\Option\ArrayInterface
  11. {
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public function toOptionArray()
  16. {
  17. return [
  18. ['value' => \Magento\Cms\Model\Wysiwyg\Config::WYSIWYG_ENABLED, 'label' => __('Enabled by Default')],
  19. ['value' => \Magento\Cms\Model\Wysiwyg\Config::WYSIWYG_HIDDEN, 'label' => __('Disabled by Default')],
  20. ['value' => \Magento\Cms\Model\Wysiwyg\Config::WYSIWYG_DISABLED, 'label' => __('Disabled Completely')]
  21. ];
  22. }
  23. }