cancel
Showing results for 
Search instead for 
Did you mean: 

How to override definition.xml file in Magento 2?

How to override definition.xml file in Magento 2?

I am developing an extension to add another export format option in order toolbar in export button dropdown.

 

What I found yet is that there are two options here (Sales Order Toolbar) right now:

a) CSV
b) Excel XML

Here I want to add another option here called "MOM" which will create a new csv format of order.

 

I found that above two options comes from following path:

 

vendor\magento\module-ui\view\base\ui_component\etc\definition.xml


But I don't know how to override it in my module. I don't want to edit core files.

 

I also follow this but not avail:

https://magento.stackexchange.com/questions/268277/how-to-override-definition-xml-file-in-magento-2