/** * @param PluginsByTechnicalNameRequest $context * @return PluginStruct */ public function getPlugin(PluginsByTechnicalNameRequest $context) { $locale = $this->localPluginService->getPlugin($context); if (!$locale instanceof PluginStruct) { return $this->storePluginService->getPlugin($context); } $store = $this->storePluginService->getPlugin($context); $this->hydrator->assignStorePluginStruct($locale, $store); return $locale; }