17 class Grid extends \Magento\Backend\Block\Widget\Grid\Extended
32 \
Magento\Backend\Helper\Data $backendHelper,
36 $this->_templateCollection = $templateCollection;
37 parent::__construct($context, $backendHelper,
$data);
48 $this->
setCollection($this->_templateCollection->useOnlyActual());
50 return parent::_prepareCollection();
64 'index' =>
'template_id',
65 'header_css_class' =>
'col-id',
66 'column_css_class' =>
'col-id' 72 'header' =>
__(
'Template'),
73 'index' =>
'template_code',
74 'header_css_class' =>
'col-template',
75 'column_css_class' =>
'col-template' 82 'header' =>
__(
'Added'),
83 'index' =>
'added_at',
86 'header_css_class' =>
'col-added col-date',
87 'column_css_class' =>
'col-added col-date' 94 'header' =>
__(
'Updated'),
95 'index' =>
'modified_at',
98 'header_css_class' =>
'col-updated col-date',
99 'column_css_class' =>
'col-updated col-date' 106 'header' =>
__(
'Subject'),
107 'index' =>
'template_subject',
108 'header_css_class' =>
'col-subject',
109 'column_css_class' =>
'col-subject' 116 'header' =>
__(
'Sender'),
117 'index' =>
'template_sender_email',
119 'header_css_class' =>
'col-sender',
120 'column_css_class' =>
'col-sender' 127 'header' =>
__(
'Template Type'),
128 'index' =>
'template_type',
131 TemplateTypesInterface::TYPE_HTML =>
'html',
132 TemplateTypesInterface::TYPE_TEXT =>
'text',
134 'header_css_class' =>
'col-type',
135 'column_css_class' =>
'col-type' 142 'header' =>
__(
'Action'),
143 'index' =>
'template_id',
148 'header_css_class' =>
'col-actions',
149 'column_css_class' =>
'col-actions' 164 return $this->
getUrl(
'*/*/edit', [
'id' =>
$row->getId()]);
getUrl($route='', $params=[])
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Newsletter\Model\ResourceModel\Template\Collection $templateCollection, array $data=[])