You are working on a new entity called vendor. You implemented the model, resource model and collection. You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others. How do you do that?
A) Create an entry in etc/di.xml and add the argument eve ntPrefix with the value of vendor Create an entry in etc/di.xml and add the argument eve ntPrefix with the value of vendor
B) Declare the $_eventPrefix property in your vendor model and set it to vendor Declare the $_eventPrefix property in your vendor model and set it to
C) You must implement all appropriate methods and fire the events manually
D) Ensure that the primary key in the corresponding table is named vendor_id Ensure that the primary key in the corresponding table is named vendor_id
Correct Answer:
Verified
Q33: Your module, MyCompany_MyModule, is using the frontName
Q34: Which three scopes can be used to
Q35: You are working on a project that
Q36: While developing a module you need to
Q37: You want to declare a block of
Q39: A merchant is interested in setting different
Q40: What order operation is available in the
Q41: What is the difference between online and
Q42: A merchant asks you to extend customer
Q43: What is the relationship between products and
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents