コード例 #1
0
ファイル: Input.php プロジェクト: opexsw/magento2
 /**
  * Prepare component configuration
  *
  * @return void
  */
 public function prepare()
 {
     parent::prepare();
     $this->wrappedComponent = $this->uiComponentFactory->create($this->getName(), static::COMPONENT, ['context' => $this->getContext()]);
     $this->wrappedComponent->prepare();
     $this->applyFilter();
     $jsConfig = array_replace_recursive($this->getConfiguration($this->wrappedComponent), $this->getConfiguration($this));
     $this->getContext()->addComponentDefinition($this->getComponentName(), $jsConfig);
 }
コード例 #2
0
ファイル: Input.php プロジェクト: pradeep-wagento/magento2
 /**
  * Prepare component configuration
  *
  * @return void
  */
 public function prepare()
 {
     $this->wrappedComponent = $this->uiComponentFactory->create($this->getName(), static::COMPONENT, ['context' => $this->getContext()]);
     $this->wrappedComponent->prepare();
     // Merge JS configuration with wrapped component configuration
     $jsConfig = array_replace_recursive($this->getJsConfig($this->wrappedComponent), $this->getJsConfig($this));
     $this->setData('js_config', $jsConfig);
     $this->setData('config', array_replace_recursive((array) $this->wrappedComponent->getData('config'), (array) $this->getData('config')));
     $this->applyFilter();
     parent::prepare();
 }