How do you do that?

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 eventPrefix with the value of vendor
B . Declare the $_eventPrefix property in your vendor model and set it to vendor
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

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments