<< Prev Question Next Question >>

Question 19/37

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 (37q)
Question 1: What happens when a category's is_anchor attribute is set to...
Question 2: You are implementing a before plugin in MyCompany_Magic. It ...
Question 3: You are developing a new theme which inherits from the Magen...
Question 4: You got a notification about error that occurred on a produc...
Question 5: You are tasked with ensuring customers who log into the site...
Question 6: You have created a new section in system configuration under...
Question 7: You are creating a new page layout for your custom module. W...
Question 8: You are reviewing a Magento module and see a directory named...
Question 9: The module MyCompany_MyModule provides custom admin interfac...
Question 10: Your module, MyCompany_MyModule, is using the frontName mymo...
Question 11: You have been given the task of importing products from an e...
Question 12: What will be the result of calling the save() method on a co...
Question 13: The constructor function for \Magento\Catalog\Model\Category...
Question 14: A merchant tasks you to keep sales managers out of the syste...
Question 15: How do you obtain customer information in a JavaScript modul...
Question 16: While reviewing a layout file named sales_order_view.xml you...
Question 17: A client has asked you to include category url keys in produ...
Question 18: You need to find all orders in the processing state. You hav...
Question 19: You are working on a new entity called vendor. You implement...
Question 20: How do you pass an array ['one', 'two] as a parameter to you...
Question 21: How does Magento store customer address attribute values?...
Question 22: A custom module must make changes to the schema following ea...
Question 23: You are implementing a custom module MyModule, which provide...
Question 24: You are adding a new menu item to the admin backend which wi...
Question 25: You have created a custom module which must perform an actio...
Question 26: In the module located at app/code/MyCompany/MyModule there i...
Question 27: You added a new constructor argument to an existing action c...
Question 28: While developing a module you need to modify an existing Dat...
Question 29: You have created a module with a custom ACL resource and wan...
Question 30: How do you add a foreign key to an existing table created by...
Question 31: The module MyCompany_MyModule will add a new page to the adm...
Question 32: You are working on a Magento store which will be selling in ...
Question 33: You have created a new block and will be adding this block o...
Question 34: Products may be accessed using SEO friendly URLs like /my-pr...
Question 35: Assume that a customer's cart only includes one downloadable...
Question 36: There are two different configurable products which both sha...
Question 37: A custom module needs to log all calls of \Magento\Customer\...