Timeline for How to inject adminhtml values as an array in Magento2
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 31, 2015 at 12:33 | comment | added | awavi | Sorry this is not what I am looking for. I want to use di.xml to inject an array in a virtualtype. As of now, the only way I have figured out how to inject the adminhtml values is by using ScopeConfigInterface so I have done a workaround by injecting a ScopeConfigInterface interface into another class that extends the third party class and overwrite the constructor so it arranges my ScopeConfigInterface into an array and then call the parent constructor. I am hoping there is a better, way to do so. | |
| Dec 30, 2015 at 21:20 | history | answered | Ibnab | CC BY-SA 3.0 |