Video Lesson: Use a before plugin to modify function parameters in Magento

Use a before plugin to modify function parameters in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

Use a before plugin to modify function parameters in Magento

Learn how to use a Magento 2 before plugin to modify observer execute parameters and add custom request data.


Lesson Content

Let’s take a look at this LogPostDetailView observer class from the Macademy_Blog module, and let’s say we wanted to manually add a parameter to the request object with some backend code. Since th...

Premium content

Enroll to unlock the full content and all course materials.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Notes

Keep track of what you learn!