SaveAndContinueButton.php 760 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\SalesRule\Block\Adminhtml\Promo\Quote\Edit;
  7. use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
  8. class SaveAndContinueButton extends GenericButton implements ButtonProviderInterface
  9. {
  10. /**
  11. * @return array
  12. * @codeCoverageIgnore
  13. */
  14. public function getButtonData()
  15. {
  16. $data = [];
  17. if ($this->canRender('save_and_continue_edit')) {
  18. $data = [
  19. 'label' => __('Save and Continue Edit'),
  20. 'class' => 'save',
  21. 'on_click' => '',
  22. 'sort_order' => 90,
  23. ];
  24. }
  25. return $data;
  26. }
  27. }