layoutLayout file: So if
<block class="Magento\NegotiableQuote\Block\Quote\Info" name="quote.status" template="Magento_NegotiableQuote::quote/status.phtml"/> So you can use: $blockname = $block->getNameInLayout() //for$blockname = $block->getNameInLayout() for fetching the "name" assigned to the block in layout file.e, e.g commentcomment.status.status
OR
Use: var_dump(get_class($block));Or you can use //var_dump(get_class($block)); to fetch the class of the block.