Magento 2 Plugin Limitations

Limitations

Plugins can not be used on following:

  • Final methods
  • Final classes
  • Non-public methods
  • Class methods (such as static methods)
  • __construct
  • Virtual types
  • Objects that are instantiated before¬†Magento\Framework\Interception¬†is bootstrapped

Leave a Reply

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