Magento 2 Certification Questions List | How to use before save plugin

You need to make some modifications to an entity before it is saved to the database. Your tool of choice is a plugin.

What are requirements for a plugin?

Answer:
  • The plugin method must begin with the type of the plugin.
  • The plugin class must be specified in di.xml.
  • The targeted method or class must not be marked final.
Prepear for Magento 2 certefication with our interactive quiz