ElementConfig example

$component->setTemplate($data['__emotionLibraryComponent_template']);
        $component->setCssClass($data['__emotionLibraryComponent_cls']);
        $component->setPluginId($data['__emotionLibraryComponent_plugin_id'] !== null ? (int) $data['__emotionLibraryComponent_plugin_id'] : null);

        $element->setComponent($component);
    }

    private function assignConfig(Element $element, array $config = [])
    {
        $config = $this->assignConfigTranslation($config);

        $elementConfig = new ElementConfig($config);

        $element->setConfig($elementConfig);
    }

    private function assignViewports(Element $element, array $viewports = [])
    {
        $elementViewports = [];

        foreach ($viewports as $rawViewportData) {
            $viewport = new ElementViewport();
            $viewport->setId((int) $rawViewportData['__emotionElementViewport_id']);
            
Home | Imprint | This part of the site doesn't use cookies.