init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Esun\LingxingErp\Block\Adminhtml\Warehouse;
|
||||
|
||||
use Magento\Backend\Block\Widget\Button;
|
||||
|
||||
class ManageSourcesButton extends Button
|
||||
{
|
||||
protected function _construct(): void
|
||||
{
|
||||
parent::_construct();
|
||||
$this->setData([
|
||||
'label' => __('Map Source Warehouses'),
|
||||
'class' => 'secondary',
|
||||
'style' => 'margin-left: 12px;',
|
||||
'onclick' => sprintf('setLocation(%s)', json_encode(
|
||||
$this->getUrl('inventory/source/index'),
|
||||
JSON_HEX_APOS | JSON_HEX_QUOT
|
||||
)),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user