Files
2026-09-15 10:35:56 +08:00

24 lines
612 B
PHP

<?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
)),
]);
}
}