mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
26 lines
708 B
PHP
26 lines
708 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Downloadable\Observer;
|
|
|
|
use Magento\Framework\Event\ObserverInterface;
|
|
|
|
class InitOptionRendererObserver implements ObserverInterface
|
|
{
|
|
/**
|
|
* Initialize product options renderer with downloadable specific params
|
|
*
|
|
* @param \Magento\Framework\Event\Observer $observer
|
|
* @return $this
|
|
*/
|
|
public function execute(\Magento\Framework\Event\Observer $observer)
|
|
{
|
|
$block = $observer->getBlock();
|
|
$block->addOptionsRenderCfg('downloadable', \Magento\Downloadable\Helper\Catalog\Product\Configuration::class);
|
|
|
|
return $this;
|
|
}
|
|
}
|