ContainerInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Block\Widget;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. interface ContainerInterface extends \Magento\Backend\Block\Widget\Button\ContextInterface
  12. {
  13. /**
  14. * Public wrapper for the button list
  15. *
  16. * @param string $buttonId
  17. * @param array $data
  18. * @param integer $level
  19. * @param integer $sortOrder
  20. * @param string|null $region That button should be displayed in ('toolbar', 'header', 'footer', null)
  21. * @return $this
  22. */
  23. public function addButton($buttonId, $data, $level = 0, $sortOrder = 0, $region = 'toolbar');
  24. /**
  25. * Public wrapper for the button list
  26. *
  27. * @param string $buttonId
  28. * @return $this
  29. */
  30. public function removeButton($buttonId);
  31. /**
  32. * Public wrapper for protected _updateButton method
  33. *
  34. * @param string $buttonId
  35. * @param string|null $key
  36. * @param string $data
  37. * @return $this
  38. */
  39. public function updateButton($buttonId, $key, $data);
  40. }