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