mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-08 01:37:36 +00:00
24 lines
524 B
PHP
24 lines
524 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
namespace Magento\Backend\Block\Widget\Button;
|
|
|
|
/**
|
|
* Interface \Magento\Backend\Block\Widget\Button\ContextInterface
|
|
*
|
|
* @api
|
|
*/
|
|
interface ContextInterface
|
|
{
|
|
/**
|
|
* Check whether button rendering is allowed in current context
|
|
*
|
|
* @param \Magento\Backend\Block\Widget\Button\Item $item
|
|
* @return bool
|
|
*/
|
|
public function canRender(\Magento\Backend\Block\Widget\Button\Item $item);
|
|
}
|