savePluginConfig example

/** * @param array $elements */
    public function savePluginConfig(Plugin $plugin$elements, ?Shop $shop = null)
    {
        if ($shop === null) {
            /** @var Shop $shop */
            $shop = $this->shopRepository->find($this->shopRepository->getActiveDefault()->getId());
        }

        $this->configWriter->savePluginConfig($plugin$elements$shop);
    }

    /** * @param string $name * * @throws Exception */
    public function saveConfigElement(Plugin $plugin$name$value, ?Shop $shop = null)
    {
        if ($shop === null) {
            /** @var Shop $shop */
            
Home | Imprint | This part of the site doesn't use cookies.