prepareConfigData example

$this->View()->assign([
            'success' => true,
            'data' => $shops,
        ]);
    }

    public function getConfigAction()
    {
        Shopware()->Container()->get(Zend_Cache_Core::class)->remove(CacheManager::ITEM_TAG_CONFIG);
        $this->View()->assign([
            'success' => true,
            'data' => $this->prepareConfigData(),
        ]);
    }

    /** * Gets a list of id-name of all active shops */
    public function getActiveShopsAction()
    {
        $shopRepo = $this->container->get(ModelManager::class)->getRepository(Shop::class);
        $shops = $shopRepo->getActiveShops(AbstractQuery::HYDRATE_ARRAY);
        $this->View()->assign([
            
Home | Imprint | This part of the site doesn't use cookies.