SaveAndContinueButton.php 855 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Theme\Block\Adminhtml\Design\Config\Edit;
  7. use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
  8. /**
  9. * "Save and continue" button data provider
  10. *
  11. * @api
  12. * @since 100.1.0
  13. */
  14. class SaveAndContinueButton implements ButtonProviderInterface
  15. {
  16. /**
  17. * @return array
  18. * @since 100.1.0
  19. */
  20. public function getButtonData()
  21. {
  22. return [
  23. 'label' => __('Save and Continue'),
  24. 'class' => 'save',
  25. 'data_attribute' => [
  26. 'mage-init' => [
  27. 'button' => ['event' => 'saveAndContinue'],
  28. ],
  29. 'form-role' => 'saveAndContinue'
  30. ],
  31. 'sort_order' => 15,
  32. ];
  33. }
  34. }