public function getBlockById(int $blockId, int $siteId = null)
    {
        /** @var SuperTableBlock|null $block */
        $block = Craft::$app->getElements()->getElementById($blockId, SuperTableBlockElement::class, $siteId);

        return $block;
    }
public function getBlockById(int $blockId, int $siteId = null)
    {
        /** @var SuperTableBlock|null $block */
        $block = Craft::$app->getElements()->getElementById($blockId, SuperTableBlockElement::class, $siteId);

        return $block;
    }
public function getBlockById ( int $ blockId , int $ siteId = null ) { /** @var SuperTableBlock|null $block */ $ block = Craft :: $ app -> getElements ( ) -> getElementById ( $ blockId , SuperTableBlockElement :: class , $ siteId ) ; return $ block ; }
Returns a block by its ID.

@param int      $blockId The Super Table block’s ID.
@param int|null $siteId  The site ID to return. Defaults to the current site.

@return SuperTableBlock|null The Super Table block, or `null` if it didn’t exist.
Returns a block by its ID .