ContextInterface.php 528 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Block\Widget\Button;
  7. /**
  8. * Interface \Magento\Backend\Block\Widget\Button\ContextInterface
  9. *
  10. */
  11. interface ContextInterface
  12. {
  13. /**
  14. * Check whether button rendering is allowed in current context
  15. *
  16. * @param \Magento\Backend\Block\Widget\Button\Item $item
  17. * @return bool
  18. * @api
  19. */
  20. public function canRender(\Magento\Backend\Block\Widget\Button\Item $item);
  21. }