HOW TO CREATE A TAB IN Admin CUSTOMER EDIT PAGE IN MAGENTO 2?

In Magento 2, You can add a new custom tab in the Customer Edit page. If you want to add a new tab in Customer edit section for your custom requirement, You can add easily customer tab in Customer edit section.

You need to create a simple module for add extra tab in the customer edit section.

Refer below code snippet for add extra tab,
I have taken Rbj as Packagename and CustomerTab as modulename for simplicity. Continue reading “HOW TO CREATE A TAB IN Admin CUSTOMER EDIT PAGE IN MAGENTO 2?”

Get list of Layout XML called for a current page Magento 2.

You can get a list of called Layout XML for specific pages by Magento\Framework\App\View class.

Call getLayout() method from Magento\Framework\App\View.php class.

getLayout()->getUpdate()->getHandles() used for getting all the handles of a page.

You need to keep below code at the end of root index.php file to check XML files. Continue reading “Get list of Layout XML called for a current page Magento 2.”