In the answer to "How does WP detect format type (and can I make use of this)?" a method is given for detecting block type.
If I passed in the result of, say,
$out = wp_oembed_get($href); would that work or is there something else needed to make the return value of
wp_oembed_get a valid block?