layout file: So if use: $blockname = $block->getNameInLayout() //for fetching the "name" assigned to the block in layout file.e.g comment.status
OR
Use: var_dump(get_class($block)); // to fetch the class of the block
layout file: So if use: $blockname = $block->getNameInLayout() //for fetching the "name" assigned to the block in layout file.e.g comment.status
OR
Use: var_dump(get_class($block)); // to fetch the class of the block