code: protected function generateBlock(BlockInterface $block)
      {
          $block->setSiteId('2');
  
          $this->manager->persist($block);
          $this->manager->flush();
  
          return $block;
      }
docs: @param BlockInterface $block
  
  @return BlockInterface