concrete/src/Authentication/AuthenticationType.php
public static function getByHandle($atHandle)
    {
        $db = Loader::db();
        $row = $db->GetRow('SELECT * FROM AuthenticationTypes WHERE authTypeHandle=?', [$atHandle]);
        if (!$row) {
            throw new Exception(t('Invalid Authentication Type Handle'));
        }
        $at = self::load($row);

        return $at;
    }
public static function getByHandle($atHandle)
    {
        $db = Loader::db();
        $row = $db->GetRow('SELECT * FROM AuthenticationTypes WHERE authTypeHandle=?', [$atHandle]);
        if (!$row) {
            throw new Exception(t('Invalid Authentication Type Handle'));
        }
        $at = self::load($row);

        return $at;
    }
public static function getByHandle ( $ atHandle ) { $ db = Loader :: db ( ) ; $ row = $ db -> GetRow ( 'SELECT * FROM AuthenticationTypes WHERE authTypeHandle=?' , [ $ atHandle ] ) ; if ( ! $ row ) { throw new Exception ( t ( 'Invalid Authentication Type Handle' ) ) ; } $ at = self :: load ( $ row ) ; return $ at ; }
Return loaded AuthenticationType with the given handle.

@param string $atHandle authenticationType handle

@throws \Exception when an invalid handle is provided

@return AuthenticationType
Return loaded AuthenticationType with the given handle .