示例#1
0
 /**
  * Finishes the building of the block view
  *
  * @param BlockView $view
  * @param string    $id
  */
 protected function finishBlockView(BlockView $view, $id)
 {
     $blockType = $this->rawLayout->getProperty($id, RawLayout::BLOCK_TYPE, true);
     $options = $this->rawLayout->getProperty($id, RawLayout::RESOLVED_OPTIONS, true);
     $types = $this->typeHelper->getTypes($blockType);
     // point the block view state to the current block
     $this->block->initialize($id);
     // finish the view
     foreach ($types as $type) {
         $type->finishView($view, $this->block, $options);
         $this->registry->finishView($type->getName(), $view, $this->block, $options);
     }
 }