17 class Link extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
48 $this->_sitemapFactory = $sitemapFactory;
52 parent::__construct($context,
$data);
64 $sitemap = $this->_sitemapFactory->create();
67 $fileName = preg_replace(
'/^\//',
'',
$row->getSitemapPath() .
$row->getSitemapFilename());
68 $documentRootPath = $this->documentRoot->getPath();
69 $directory = $this->_filesystem->getDirectoryRead($documentRootPath);
71 return sprintf(
'<a href="%1$s">%1$s</a>',
$url);
escapeHtml($data, $allowedTags=null)
__construct(\Magento\Backend\Block\Context $context, \Magento\Sitemap\Model\SitemapFactory $sitemapFactory, \Magento\Framework\Filesystem $filesystem, array $data=[], DocumentRoot $documentRoot=null)