Many of our users ask how to add a button in Magento 2 backend configuration section and call a simple PHP method when clicking on it. That’s relatively easy to do.
To create buttons for our UI form, we have to perform two steps:
- Edit UI Component XML File and add configuration to the new button
- Create Button PHP classes that are going to be responsible for our controls.
What will we do next? Watch the video.