Magento 2 – Quick notes

Can not make plugin for protected, private methods

You cannot apply plugins to:

  • Final methods
  • Final classes
  • Any class that contains at least one final public method
  • Non-public methods
  • Class methods (such as static methods)
  • __construct Virtual types

Leave a Reply

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