Editor.php 644 B

123456789101112131415161718192021222324252627282930313233
  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 Editor implements \Magento\Framework\Option\ArrayInterface
  11. {
  12. /**
  13. * @var array
  14. */
  15. private $adapterOptions;
  16. /**
  17. * @param array $adapterOptions
  18. */
  19. public function __construct(array $adapterOptions = [])
  20. {
  21. $this->adapterOptions = $adapterOptions;
  22. }
  23. /**
  24. * @inheritdoc
  25. */
  26. public function toOptionArray()
  27. {
  28. return $this->adapterOptions;
  29. }
  30. }