22 protected $_template =
'Magento_Newsletter::problem/list.phtml';
39 $this->_problemCollection = $problemCollection;
40 parent::__construct($context,
$data);
51 $collection = $this->_problemCollection->addSubscriberInfo()->addQueueInfo();
64 \
Magento\Backend\Block\Widget\Button::class,
67 [
'label' =>
__(
'Delete Selected Problems'),
'onclick' =>
'problemController.deleteSelected();']
74 \
Magento\Backend\Block\Widget\Button::class,
77 [
'label' =>
__(
'Unsubscribe Selected'),
'onclick' =>
'problemController.unsubscribe();']
80 return parent::_prepareLayout();
111 return $this->_problemCollection->getSize() > 0;
getUnsubscribeButtonHtml()
__construct(\Magento\Backend\Block\Template\Context $context, Collection $problemCollection, array $data=[])
setData($key, $value=null)
getChildHtml($alias='', $useCache=true)