Magento 2 Certified Associate Developer Exam Magento-2-Certified-Associate-Developer Question # 19 Topic 2 Discussion

Magento 2 Certified Associate Developer Exam Magento-2-Certified-Associate-Developer Question # 19 Topic 2 Discussion

Magento-2-Certified-Associate-Developer Exam Topic 2 Question 19 Discussion:
Question #: 19
Topic #: 2

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


Get Premium Magento-2-Certified-Associate-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.