/** * Initializes toolbar * * @return \Magento\Framework\View\Element\AbstractBlock */ protected function _prepareLayout() { if ($this->getReviews()) { $toolbar = $this->getLayout()->createBlock('Magento\\Theme\\Block\\Html\\Pager', 'customer_review_list.toolbar')->setCollection($this->getReviews()); $this->setChild('toolbar', $toolbar); } return parent::_prepareLayout(); }