Details.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Paypal\Block\Adminhtml\Settlement;
  7. /**
  8. * Settlement reports transaction details
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. */
  12. class Details extends \Magento\Backend\Block\Widget\Form\Container
  13. {
  14. /**
  15. * Block construction
  16. * Initialize titles, buttons
  17. *
  18. * @return void
  19. */
  20. protected function _construct()
  21. {
  22. parent::_construct();
  23. $this->_controller = '';
  24. $this->_headerText = __('View Transaction Details');
  25. $this->buttonList->remove('reset');
  26. $this->buttonList->remove('delete');
  27. $this->buttonList->remove('save');
  28. }
  29. /**
  30. * Initialize form
  31. *
  32. * @return $this
  33. */
  34. protected function _prepareLayout()
  35. {
  36. parent::_prepareLayout();
  37. $this->addChild('form', \Magento\Paypal\Block\Adminhtml\Settlement\Details\Form::class);
  38. return $this;
  39. }
  40. }