![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-backup/Block/Adminhtml/Grid/Column/Renderer/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * Backup grid item renderer * * @author Magento Core Team <[email protected]> */ namespace Magento\Backup\Block\Adminhtml\Grid\Column\Renderer; class Download extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Text { /** * Renders grid column * * @param \Magento\Framework\DataObject $row * @return mixed */ public function _getValue(\Magento\Framework\DataObject $row) { $url7zip = __( 'The archive can be uncompressed with <a href="%1">%2</a> on Windows systems.', 'http://www.7-zip.org/', '7-Zip' ); return '<a href="' . $this->getUrl( '*/*/download', ['time' => $row->getData('time'), 'type' => $row->getData('type')] ) . '">' . $row->getData( 'extension' ) . '</a> <small>(' . $url7zip . ')</small>'; } }