Skip to main content
6 events
when toggle format what by license comment
Nov 4, 2019 at 5:43 history edited Kirti Nariya CC BY-SA 4.0
Classes in PHP can implement many interfaces at once. Your best bet is to write your own interface which adds the methods you require, then implement the models you want to implement the interfaces you need. **The interface** interface MyCustomManagementInterface { public myMethod(
Oct 31, 2019 at 5:26 comment added Kirti Nariya Could you please help me on this question. magento.stackexchange.com/questions/293336/…
Oct 18, 2019 at 10:54 comment added Kirti Nariya Thank you. Please below path have preference and i have to add custom code in intarface and model as well magento2/vendor/magento/module-catalog/etc/di.xml <preference for="Magento\Catalog\Api\Data\ProductCustomOptionValuesInterface" type="Magento\Catalog\Model\Product\Option\Value" /> Give me example for di.xml file
Oct 18, 2019 at 10:38 comment added Brett You can't override an interface. The best you can do is create an interface that inherits from the core interface and then use preferences in di.xml to provide your custom class that extends the core class and implements your custom interface.
Oct 18, 2019 at 10:28 comment added Kirti Nariya How can I override core Interface and Mode. Please let me know ? Magento\Catalog\Api\Data\ProductCustomOptionValuesInterface.php Magento\Catalog\Model\Product\Option\Value.php
Apr 2, 2017 at 2:26 history answered Brett CC BY-SA 3.0