Skip to content

Commit e99f36f

Browse files
committed
Removed redundant method _beforeToHtml
1 parent 9f093a3 commit e99f36f

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

app/code/Magento/Newsletter/Block/Adminhtml/Subscriber.php

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
*/
1212
namespace Magento\Newsletter\Block\Adminhtml;
1313

14+
use Magento\Backend\Block\Template;
15+
use Magento\Backend\Block\Template\Context;
1416
use Magento\Newsletter\Model\ResourceModel\Queue\Collection;
17+
use Magento\Newsletter\Model\ResourceModel\Queue\CollectionFactory;
1518

1619
/**
1720
* @api
1821
* @since 100.0.2
1922
*/
20-
class Subscriber extends \Magento\Backend\Block\Template
23+
class Subscriber extends Template
2124
{
2225
/**
2326
* Queue collection
@@ -32,34 +35,24 @@ class Subscriber extends \Magento\Backend\Block\Template
3235
protected $_template = 'Magento_Newsletter::subscriber/list.phtml';
3336

3437
/**
35-
* @var \Magento\Newsletter\Model\ResourceModel\Queue\CollectionFactory
38+
* @var CollectionFactory
3639
*/
3740
protected $_collectionFactory;
3841

3942
/**
40-
* @param \Magento\Backend\Block\Template\Context $context
41-
* @param \Magento\Newsletter\Model\ResourceModel\Queue\CollectionFactory $collectionFactory
43+
* @param Context $context
44+
* @param CollectionFactory $collectionFactory
4245
* @param array $data
4346
*/
4447
public function __construct(
45-
\Magento\Backend\Block\Template\Context $context,
46-
\Magento\Newsletter\Model\ResourceModel\Queue\CollectionFactory $collectionFactory,
48+
Context $context,
49+
CollectionFactory $collectionFactory,
4750
array $data = []
4851
) {
4952
$this->_collectionFactory = $collectionFactory;
5053
parent::__construct($context, $data);
5154
}
5255

53-
/**
54-
* Prepares block to render
55-
*
56-
* @return $this
57-
*/
58-
protected function _beforeToHtml()
59-
{
60-
return parent::_beforeToHtml();
61-
}
62-
6356
/**
6457
* Return queue collection with loaded neversent queues
6558
*
@@ -68,7 +61,7 @@ protected function _beforeToHtml()
6861
public function getQueueCollection()
6962
{
7063
if ($this->_queueCollection === null) {
71-
/** @var $this->_queueCollection \Magento\Newsletter\Model\ResourceModel\Queue\Collection */
64+
/** @var $this->_queueCollection Collection */
7265
$this->_queueCollection = $this
7366
->_collectionFactory
7467
->create()

0 commit comments

Comments
 (0)