Solved

You Are Working on a New Entity Called Vendor

Question 38

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents