1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* Backup grid item renderer
*
* @author Magento Core Team <core@magentocommerce.com>
*/
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>';
}
}