concrete/src/Block/BlockType/Set.php
public static function getByHandle($btsHandle)
    {
        $result = null;
        $btsHandle = (string) $btsHandle;
        if ($btsHandle !== '') {
            $app = Application::getFacadeApplication();
            $db = $app->make(Connection::class);
            $row = $db->fetchAssoc('select btsID, btsHandle, pkgID, btsName from BlockTypeSets where btsHandle = ?', [$btsHandle]);
            if ($row !== false) {
                $result = new static();
                $result->setPropertiesFromArray($row);
            }
        }

        return $result;
    }
public static function getByHandle($btsHandle)
    {
        $result = null;
        $btsHandle = (string) $btsHandle;
        if ($btsHandle !== '') {
            $app = Application::getFacadeApplication();
            $db = $app->make(Connection::class);
            $row = $db->fetchAssoc('select btsID, btsHandle, pkgID, btsName from BlockTypeSets where btsHandle = ?', [$btsHandle]);
            if ($row !== false) {
                $result = new static();
                $result->setPropertiesFromArray($row);
            }
        }

        return $result;
    }
public static function getByHandle ( $ btsHandle ) { $ result = null ; $ btsHandle = ( string ) $ btsHandle ; if ( $ btsHandle !== '' ) { $ app = Application :: getFacadeApplication ( ) ; $ db = $ app -> make ( Connection :: class ) ; $ row = $ db -> fetchAssoc ( 'select btsID, btsHandle, pkgID, btsName from BlockTypeSets where btsHandle = ?' , [ $ btsHandle ] ) ; if ( $ row !== false ) { $ result = new static ( ) ; $ result -> setPropertiesFromArray ( $ row ) ; } } return $ result ; }
Get a block type set given its handle.

@param string $btsHandle

@return static|null
Get a block type set given its handle .