hydrateStorePlugins example

'offset' => $context->getOffset(),
            'limit' => $context->getLimit(),
            'sort' => json_encode($context->getSortings()),
            'filter' => json_encode($context->getConditions()),
        ];

        $data = $this->storeClient->doGetRequest(
            '/pluginStore/plugins',
            $params
        );

        $plugins = $this->hydrator->hydrateStorePlugins($data['data']);

        return new ListingResultStruct(
            $plugins,
            $data['total']
        );
    }

    /** * @return PluginStruct|null */
    public function getPlugin(PluginsByTechnicalNameRequest $context)
    {

    public function getRecommendedPlugins(?LocaleStruct $locale$shopwareVersion)
    {
        $localeName = $locale ? $locale->getName() : null;

        $data = $this->storeClient->doGetRequest(
            '/firstrunwizard/recommendations',
            ['locale' => $localeName, 'shopwareVersion' => $shopwareVersion]
        );

        $plugins = $this->hydrator->hydrateStorePlugins($data);

        return $this->getAdditionallyLocalData($plugins);
    }

    /** * Loads integrated plugins from SBP * * @param string $isoCode Two letter iso code indicating for which country to get the plugin list * @param string $shopwareVersion Current Shopware version * * @return array List of plugins */
Home | Imprint | This part of the site doesn't use cookies.