ActionPoolInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Element\UiComponent\Control;
  7. use Magento\Framework\View\Element\BlockInterface;
  8. use Magento\Framework\View\Element\UiComponentInterface;
  9. /**
  10. * Interface ActionPoolInterface
  11. */
  12. interface ActionPoolInterface
  13. {
  14. /**
  15. * Add button
  16. *
  17. * @param string $key
  18. * @param array $data
  19. * @param UiComponentInterface $context
  20. * @return void
  21. */
  22. public function add($key, array $data, UiComponentInterface $context);
  23. /**
  24. * Remove button
  25. *
  26. * @param string $key
  27. * @return void
  28. */
  29. public function remove($key);
  30. /**
  31. * Update button
  32. *
  33. * @param string $key
  34. * @param array $data
  35. * @return void
  36. */
  37. public function update($key, array $data);
  38. /**
  39. * Get toolbar block
  40. *
  41. * @return bool|BlockInterface
  42. */
  43. public function getToolbar();
  44. /**
  45. * Add html block
  46. *
  47. * @param string $type
  48. * @param string $name
  49. * @param array $arguments
  50. * @return void
  51. */
  52. public function addHtmlBlock($type, $name = '', array $arguments = []);
  53. }