Hi,
I'm sorry for not following up on this as I believe I found the answer in the default WP docs.
To clarify, I was hoping to show the Gutenberg block I created differently on different post/page templates. I am able to read the page template using code below, and added an if statement based on the result.
If you or anyone else has other or better suggestions, I'm definitely open to other ideas, too.
function metabox_render_callback($attributes) {
//echo get_the_ID().'='.get_page_template_slug(get_the_ID()); //current postID and template
//if statement based on get_page_template_slug result
}
Thanks for following up, and I believe this is solved 🙂