In Magento 2, I want to write a custom controller. Whenever anyone tries to call the controller
It should redirect to this controller an event dispatch should trigger to logout from Magento 2 site.
controllerscustomcustomerlogoutmagento2
In Magento 2, I want to write a custom controller. Whenever anyone tries to call the controller
It should redirect to this controller an event dispatch should trigger to logout from Magento 2 site.
Best Answer
Please try with below code.
than push basic commands.
I hope its work for you.