Plugin-Einstellungen von Subshops in Theme_Compiler_Collect_Plugin_Less ab Shopware 5.2 verwenden


/**
 * Provide the file collection for less
 *
 * @param Enlight_Event_EventArgs $args
 * @return ArrayCollection
 */
public function addLessFiles(Enlight_Event_EventArgs $args)
{
        // Shop laden
	/** @var \Shopware\Models\Shop\Shop $shop */
	$shop = $args->get('shop');

        // Config des Shops laden
	/** @var \Shopware_Components_Config $config */
	$config = $this->container->get('Config');
	$config->setShop($shop);

	// Plugin-Einstellung des Subshops laden
	$fullWidth = $config->getByNamespace("LenzLogo", "fullWidth");
        [...]
}