coreRegistry = $registry; parent::__construct($context, $data); } /** * Preparing layout * * @return $this */ protected function _prepareLayout() { $params = $this->coreRegistry->registry(self::REGISTRY_KEY); $this->setParams($params); return parent::_prepareLayout(); } }