Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Action.php
Go to the documentation of this file.
1 <?php
7 
11 class Action extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Action
12 {
17  public function render(\Magento\Framework\DataObject $row)
18  {
19  $this->getColumn()->setActions(
20  [
21  [
22  'url' => $this->getUrl('adminhtml/sitemap/generate', ['sitemap_id' => $row->getSitemapId()]),
23  'caption' => __('Generate'),
24  ],
25  ]
26  );
27  return parent::render($row);
28  }
29 }
__()
Definition: __.php:13
render(\Magento\Framework\DataObject $row)
Definition: Action.php:17