Skip to content

Update plugins.md removed wrong example of plugin usage and added right one - #458

Open
ndpatelce05 wants to merge 1 commit into
AdobeDocs:mainfrom
ndpatelce05:patch-2
Open

Update plugins.md removed wrong example of plugin usage and added right one#458
ndpatelce05 wants to merge 1 commit into
AdobeDocs:mainfrom
ndpatelce05:patch-2

Conversation

@ndpatelce05

@ndpatelce05 ndpatelce05 commented Aug 16, 2026

Copy link
Copy Markdown

Purpose of this pull request

Docs: Replace incorrect __construct plugin example with valid magic method example. Removed an invalid example showing a plugin applied to the __construct method, which contradicts documented plugin limitations. Replaced it with a functional example of intercepting PHP magic methods (__get and __call) based on verified community solutions on https://magento.stackexchange.com/questions/309817/how-to-change-product-images-with-external-image-url-in-all-magento-2-frontend-a#answer-309826

Affected pages

https://developer.adobe.com/commerce/php/development/components/plugins

  • ...

Links to Magento Open Source code

  • ...

Docs: Replace incorrect __construct plugin example with valid magic method example. Removed an invalid example showing a plugin applied to the __construct method, which contradicts documented plugin limitations. Replaced it with a functional example of intercepting PHP magic methods (__get and __call) based on verified community solutions on https://magento.stackexchange.com/questions/309817/how-to-change-product-images-with-external-image-url-in-all-magento-2-frontend-a#answer-309826
@ndpatelce05

Copy link
Copy Markdown
Author

I have already signed Adobe CLA still the status is not updated in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋 Needs Review

Development

Successfully merging this pull request may close these issues.

2 participants