This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Vendor\Module\Plugin; | |
use Magento\Catalog\Helper\Output; | |
class OutputPlugin { | |
public function beforeCollectHandlers(Output $outputHelper) { | |
$outputHelper->addHandler('productAttribute', $this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Vendor\Module\Plugin; | |
use Magento\Catalog\Helper\Output; | |
class OutputPlugin { | |
// this plugin method should be on a method which collects all handlers and isn't called everytime the handlers are processed | |
public function beforeProcess(Output $outputHelper, $method, $result, $params) { |