Skip to main content
1 of 2

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