setData([ 'label' => __('Sync Warehouses'), 'class' => 'primary', 'onclick' => sprintf( 'confirmSetLocation(%s, %s)', json_encode((string)__('Fetch and cache Lingxing type 3 warehouses now? Magento Sources will not be changed.'), JSON_HEX_APOS | JSON_HEX_QUOT), json_encode($this->getUrl('esun_lingxing/warehouse/sync'), JSON_HEX_APOS | JSON_HEX_QUOT) ), ]); } }