concrete/src/Block/BlockType/BlockType.php
public static function getByID($btID)
    {
        $result = null;
        $btID = (int) $btID;
        if ($btID !== 0) {
            $app = Application::getFacadeApplication();
            $em = $app->make(EntityManagerInterface::class);
            $result = $em->find(BlockTypeEntity::class, $btID);
            if ($result !== null) {
                $result->loadController();
            }
        }

        return $result;
    }
public static function getByID($btID)
    {
        $result = null;
        $btID = (int) $btID;
        if ($btID !== 0) {
            $app = Application::getFacadeApplication();
            $em = $app->make(EntityManagerInterface::class);
            $result = $em->find(BlockTypeEntity::class, $btID);
            if ($result !== null) {
                $result->loadController();
            }
        }

        return $result;
    }
public static function getByID ( $ btID ) { $ result = null ; $ btID = ( int ) $ btID ; if ( $ btID !== 0 ) { $ app = Application :: getFacadeApplication ( ) ; $ em = $ app -> make ( EntityManagerInterface :: class ) ; $ result = $ em -> find ( BlockTypeEntity :: class , $ btID ) ; if ( $ result !== null ) { $ result -> loadController ( ) ; } } return $ result ; }
Get a BlockType given its ID.

@param int $btID

@return \Concrete\Core\Entity\Block\BlockType\BlockType|null
Get a BlockType given its ID .