/**
  * @param int $idBlock
  *
  * @return string
  */
 public function getSchemaByIdBlock($idBlock)
 {
     $blockTransfer = $this->blockReader->getById($idBlock);
     $templateType = $blockTransfer->getTemplateType();
     $schema = $this->getSchema($templateType);
     return $schema;
 }
 /**
  * @param array $block
  *
  * @return void
  */
 protected function installBlock(array $block)
 {
     $blockTransfer = $this->transformBlockTransfer($block);
     if (!$this->blockReader->blockExists($blockTransfer->getName())) {
         $this->blockWriter->createBlock($blockTransfer);
         $this->addLocalizedBlockTransfers($block[self::LOCALIZED_VALUES], $blockTransfer);
         $this->blockWriter->createOrUpdateLocalizedBlocks($blockTransfer);
     }
 }