src/acdhOeaw/fedora/dissemination/parameter/RemoveProtocol.php
public function transform(string $value): string {
        
        if (strpos($value, 'hdl.handle.net') !== false) {
            $value = str_replace("http://", "", $value);
        }else if(strpos($value, 'https') !== false) {
            $value = str_replace("https://", "", $value);
        }else {
            $value = str_replace("http://", "", $value);
        }
        return $value;
        
    }
public function transform(string $value): string {
        
        if (strpos($value, 'hdl.handle.net') !== false) {
            $value = str_replace("http://", "", $value);
        }else if(strpos($value, 'https') !== false) {
            $value = str_replace("https://", "", $value);
        }else {
            $value = str_replace("http://", "", $value);
        }
        return $value;
        
    }
public function transform ( string $ value ) : string { if ( strpos ( $ value , 'hdl.handle.net' ) !== false ) { $ value = str_replace ( "http://" , "" , $ value ) ; } else if ( strpos ( $ value , 'https' ) !== false ) { $ value = str_replace ( "https://" , "" , $ value ) ; } else { $ value = str_replace ( "http://" , "" , $ value ) ; } return $ value ; }
Returns raw URL decoded value from the acdh identifier.
@param string $value value to be transformed
@return string
Returns raw URL decoded value from the acdh identifier .