What is the way to ...
 
Notifications
Clear all

What is the way to enable the entity/interface to support extension attributes in the module?

1 Posts
1 Users
0 Likes
104 Views
(@monvillemauro)
Posts: 721
Noble Member
Topic starter
 

OrangeCompany decided to build a REST API based module in the application so that he can share the details of best-selling products to his franchisee. To make it's flexible and customizable in the future, he advised his developers to enable the support of extension_attribute in the API interface so that any new attributes can be added when required.

What is the way to enable the entity/interface to support extension attributes in the module?

  • A . Check the interface for the methods getCustomAttributes() and setCustomAttributes() to determine if they are available for the entity.
    B. Check the interface for the implementation of Magento\Framework\Api\CustomAttributesDataInterface to enable support for extension attributes
    C. Check the interface for the implementation of Magento\Framework\EntityManager\Operation\ExtensionPool to enable support for extension attributes
    D. Check the interface for the methods getExtensionAttributes() and setExtensionAttributes() to determine if they are available for the entity.

Show Answer Hide Answer

Suggested Answer: D
 
Posted : 16/01/2023 2:32 pm
Topic Tags

Latest Adobe AD0-E704 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: