/** * Preparing layout * * @return \Magento\Catalog\Block\Product\Compare\ListCompare */ protected function _prepareLayout() { $headBlock = $this->getLayout()->getBlock('head'); if ($headBlock) { $headBlock->setTitle(__('Products Comparison List') . ' - ' . $headBlock->getDefaultTitle()); } return parent::_prepareLayout(); }
/** * Preparing layout * * @return \Magento\Catalog\Block\Product\Compare\ListCompare */ protected function _prepareLayout() { $this->pageConfig->getTitle()->set(__('Products Comparison List') . ' - ' . $this->pageConfig->getTitle()->getDefault()); return parent::_prepareLayout(); }