Exemplo n.º 1
0
 /**
  * Block for index model
  *
  * @param \Mirasvit\Search\Model\Index $index
  * @return \Magento\Framework\View\Element\AbstractBlock
  * @throws \Exception
  */
 public function getContentBlock($index)
 {
     $block = $this->getChildBlock($index->getCode());
     if (!$block) {
         throw new \Exception(__('Child block %1 not exists', $index->getCode()));
     }
     $block->setIndex($index);
     return $block;
 }