I want to get current product details in
vendor/magento/module-product-alert/view/frontend/templates/product/view.phtml, when i saw this file block which refering is
\Magento\ProductAlert\Block\Product\View so i looked into this file and i saw one function called
vendor/magento/module-product-alert/view/frontend/templates/product/view.phtml i had written following code to access current product details like this
<?php $ product = $ block->getProduct(); ?>
When i print this product object i am not able to get the product details. please help me.