Exemplo n.º 1
0
    /**
     * 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();
    }
Exemplo n.º 2
0
 /**
  * Prepare component configuration
  *
  * @return void
  */
 public function prepare()
 {
     $this->wrappedComponent = $this->uiComponentFactory->create($this->getName(), static::COMPONENT, ['context' => $this->getContext()]);
     $this->wrappedComponent->prepare();
     $this->applyFilter();
     parent::prepare();
 }
Exemplo n.º 3
0
 /**
  * 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 = $this->getConfiguration($this);
     $this->getContext()->addComponentDefinition($this->getComponentName(), $jsConfig);
 }
Exemplo n.º 4
0
 /**
  * Prepare component configuration
  *
  * @return void
  */
 public function prepare()
 {
     parent::prepare();
     $this->wrappedComponent = $this->uiComponentFactory->create($this->getName(), static::COMPONENT, ['context' => $this->getContext(), 'options' => $this->optionsProvider]);
     $this->wrappedComponent->prepare();
     $this->applyFilter();
     $jsConfig = array_replace_recursive($this->getConfiguration($this->wrappedComponent), $this->getConfiguration($this));
     $this->getContext()->addComponentDefinition($this->getComponentName(), $jsConfig);
 }
Exemplo n.º 5
0
 /**
  * Prepare component configuration
  *
  * @return void
  */
 public function prepare()
 {
     $this->applyFilter();
     parent::prepare();
 }