I want to access a parameter of a method in an after plugin. The value of the parameter has been changed inside the original method, and I want to access the modified value. Example:
class vendorClass
{
function paintBlue($room, $options)
{
// ...
$options['color'] = 'light green';
}
}
Now, my plugin looks like this:
class myPerfectMagentoPlugin
{
public function __construct()
{
}
public function afterPaintBlue($subject, $result, $room, $options)
{
// This $options array does not contain the color value:
var_dump($options);
}
}
How can I access the modified content of the $options
variable in an after plugin?