GerhardHutterGerhardHutter MemberComments: 0 Received thanks: 0 Member since: October 2020

Hi,

bin relativ neu in Sachen shopware und würde gerne wissen, wie man im Backend (VueJs) auf die in der config.xml definierten Variablen zugreifen kann. Kann mir da jemand weiterhelfen?

Grüße

Gerhard

Answers

  • lanealanea MemberComments: 2 Received thanks: 0 edited January 16 Member since: August 2019
    <code class="language-php"><?php declare(strict_types=1);
    
    namespace Swag\ReadingPluginConfig\Subscriber;
    
    ...
    
    class MySubscriber implements EventSubscriberInterface
    {
        ...
        public function onProductsLoaded(EntityLoadedEvent $event): void
        {
            $exampleConfig = $this->systemConfigService->get(&#39;ReadingPluginConfig.config.example&#39;);
        }
    }
Sign In or Register to comment.