assignStorePluginStruct example

public function getPlugin(PluginsByTechnicalNameRequest $context)
    {
        $locale = $this->localPluginService->getPlugin($context);

        if (!$locale instanceof PluginStruct) {
            return $this->storePluginService->getPlugin($context);
        }

        $store = $this->storePluginService->getPlugin($context);

        if ($store) {
            $this->hydrator->assignStorePluginStruct($locale$store);
        }

        return $locale;
    }

    /** * @return array */
    public function getPlugins(PluginsByTechnicalNameRequest $context)
    {
        $localePlugins = $this->localPluginService->getPlugins($context);

        
Home | Imprint | This part of the site doesn't use cookies.