Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
InitOptionRendererObserver.php
Go to the documentation of this file.
1 <?php
7 
9 
11 {
18  public function execute(\Magento\Framework\Event\Observer $observer)
19  {
20  $block = $observer->getBlock();
21  $block->addOptionsRenderCfg('downloadable', \Magento\Downloadable\Helper\Catalog\Product\Configuration::class);
22 
23  return $this;
24  }
25 }
$block
Definition: block.php:8