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

Use a before plugin to modify function parameters in Magento

Enroll to watch this lesson

Black Friday The whole University for $299/yr.

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.

Black Friday

The whole University for $299/yr.

Get the deal →
Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Black Friday

The whole University for $299/yr.

Every course, Maggie & Campus. The lowest price ever.

Get the deal →
Comments

Join the discussion!

Notes

Keep track of what you learn!