62 $this->_data = array_replace_recursive($this->_data,
$data);
100 if (isset($jsConfig[
'provider'])) {
101 unset($jsConfig[
'extends']);
107 if ($this->
hasData(
'actions')) {
111 if ($this->
hasData(
'html_blocks')) {
115 if ($this->
hasData(
'buttons')) {
118 $this->context->getProcessor()->register($this);
132 if (!empty($childComponents)) {
133 foreach ($childComponents as $child) {
172 $this->components[
$name] = $component;
181 return isset($this->components[
$name]) ? $this->components[
$name] :
null;
203 if (isset($this->components[
$name])) {
216 return $this->
getData(
'template') .
'.xhtml';
226 return (array)$this->
getData(
'config');
238 $jsConfig = (array)$component->
getData(
'js_config');
239 if (!isset($jsConfig[
'extends'])) {
240 $jsConfig[
'extends'] = $component->
getContext()->getNamespace();
254 parent::setData($key,
$value);
266 return parent::getData($key,
$index);
296 if (isset(
$data[
'observers']) && is_array(
$data[
'observers'])) {
304 unset(
$data[
'observers']);
getData($key='', $index=null)
getJsConfig(UiComponentInterface $component)
getData($key='', $index=null)
prepareChildComponent(UiComponentInterface $component)
setData($key, $value=null)
__construct(ContextInterface $context, array $components=[], array $data=[])
prepareDataSource(array $dataSource)
renderChildComponent($name)
initObservers(array & $data=[])
addComponent($name, UiComponentInterface $component)
if(!isset($_GET['name'])) $name