forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDownload.php
More file actions
35 lines (32 loc) · 899 Bytes
/
Download.php
File metadata and controls
35 lines (32 loc) · 899 Bytes
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
<?php
/**
* Copyright 2013 Adobe
* All Rights Reserved.
*/
/**
* Backup grid item renderer
*/
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>';
}
}