SaveAndContinueButton.php 769 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Search\Block\Adminhtml\Synonyms\Edit;
  7. use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
  8. /**
  9. * Class SaveAndContinueButton
  10. */
  11. class SaveAndContinueButton extends GenericButton implements ButtonProviderInterface
  12. {
  13. /**
  14. * @return array
  15. */
  16. public function getButtonData()
  17. {
  18. return [
  19. 'label' => __('Save and Continue Edit'),
  20. 'class' => 'save',
  21. 'data_attribute' => [
  22. 'mage-init' => [
  23. 'button' => ['event' => 'saveAndContinueEdit'],
  24. ],
  25. ],
  26. 'sort_order' => 80,
  27. ];
  28. }
  29. }