Magento 2 – How to Find Out Which Block is Called

adminblocksmagento2template

module-sales/view/adminhtml/templates/order/create/form/account.phtml

has the following code:

<?php echo $block->getForm()->getHtml() ?>

How can I found out which block that is?#

Best Answer

You can always check the class of $block by saying:

<?php echo $block::class; ?>

The block for this template should be: Block/Adminhtml/Order/Create/Form/Account.php in vendor/magento/module-sales

Related Topic