63 return 'form.' . $this->wrappedComponent->getComponentName();
74 $formElement = $this->
getData(
'config/formElement');
75 if (
null === $formElement) {
77 'The "formElement" configuration parameter is required for the "%1" field.',
82 $this->wrappedComponent = $this->uiComponentFactory->create(
87 $this->wrappedComponent->setData(
89 array_replace_recursive(
90 [
'dataScope' => $this->
getName()],
91 (array) $this->wrappedComponent->getData(
'config'),
92 (array) $this->
getData(
'config')
96 foreach ($this->components as $nameComponent => $component) {
97 $this->wrappedComponent->addComponent($nameComponent, $component);
101 $this->components = $this->wrappedComponent->getChildComponents();
103 $wrappedComponentConfig = $this->
getJsConfig($this->wrappedComponent);
105 $jsConfig = array_replace_recursive($wrappedComponentConfig, $this->
getJsConfig($this));
106 $jsConfig[
'extends'] = $this->wrappedComponent->getComponentName();
107 $this->
setData(
'js_config', $jsConfig);
109 $this->
setData(
'config', $this->wrappedComponent->getData(
'config'));
getJsConfig(UiComponentInterface $component)
getData($key='', $index=null)
prepareChildComponent(UiComponentInterface $component)
setData($key, $value=null)