Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Iframe.php
Go to the documentation of this file.
1 <?php
7 
15 {
16  const REGISTRY_KEY = 'transparent_form_params';
17 
23  protected $coreRegistry;
24 
32  public function __construct(
33  \Magento\Framework\View\Element\Template\Context $context,
34  \Magento\Framework\Registry $registry,
35  array $data = []
36  ) {
37  $this->coreRegistry = $registry;
38  parent::__construct($context, $data);
39  }
40 
46  protected function _prepareLayout()
47  {
48  $params = $this->coreRegistry->registry(self::REGISTRY_KEY);
49  $this->setParams($params);
50  return parent::_prepareLayout();
51  }
52 }
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Registry $registry, array $data=[])
Definition: Iframe.php:32
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18