<< Prev Question Next Question >>

Question 13/38

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?

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (38q)
Question 1: A module you are working on needs to send a newsletter to al...
Question 2: A merchant requires the ability to configure contact informa...
Question 3: You are setting up a brand new Magento installation for a me...
Question 4: You are reviewing a theme in app/design/frontend/MyCompany/M...
Question 5: You got a notification about error that occurred on a produc...
Question 6: The constructor function for \Magento\Catalog\Model\Category...
Question 7: A merchant is interested in setting different prices for the...
Question 8: What is the difference between online and offline shipping m...
Question 9: What is the relationship between products and categories in ...
Question 10: How do you add a foreign key to an existing table created by...
Question 11: A merchant asks you to extend customer functionality to allo...
Question 12: You have loaded an instance of Magento\Catalog\Model\Product...
Question 13: You are working on a new entity called vendor. You implement...
Question 14: During a code review of a module MyCompany_PaymentCurrencies...
Question 15: You are adding a new entry to the backend menu that appears ...
Question 16: How do you add a new link into the My Account sidebar?...
Question 17: A module MyModule needs to send notifications to customers o...
Question 18: You have created a custom module which must perform an actio...
Question 19: What is the connection between product attribute sets and ca...
Question 20: Assume that $collection is a new instance of a class that ex...
Question 21: You are adding an entry to the backend menu. To do so you op...
Question 22: Magento allows you to specify custom values per store for pr...
Question 23: You have created a module controller that responds to the fo...
Question 24: In the module located at app/code/MyCompany/MyModule there i...
Question 25: A client has asked you to include category url keys in produ...
Question 26: Where do you change the frontName for the admin router?...
Question 27: Which entity in Magento supports scoped attributes?...
Question 28: A custom module needs to log all calls of \Magento\Customer\...
Question 29: What order operation is available in the My Account section ...
Question 30: You have added a new attribute origin of the type varchar to...
Question 31: You are tasked to install an extension to the merchant's Mag...
Question 32: Your module adds a new controller class which will return a ...
Question 33: You added a plugin declaration to MyCompany/MyModule/etc/di....
Question 34: You are reviewing a Magento module and see a directory named...
Question 35: You are adding a child node to the product.info block using ...
Question 36: A merchant sells shoes with multiple variations such as a co...
Question 37: You are building a report using complex SQL aggregations to ...
Question 38: You have been given the task of importing products from an e...