示例#1
0
 /**
  * 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();
 }
示例#2
0
 /**
  * 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();
 }