shopware 5 plugin theme_less_collection
public static function getSubscribedEvents() { return [ 'Enlight_Controller_Action_PostDispatchSecure_Frontend' => 'onFrontendPostDispatch', 'Theme_Compiler_Collect_Plugin_Less' => 'addLessFiles', ]; }
shopware 5 plugin theme_less_collection
public static function getSubscribedEvents() { return [ 'Enlight_Controller_Action_PostDispatchSecure_Frontend' => 'onFrontendPostDispatch', 'Theme_Compiler_Collect_Plugin_Less' => 'addLessFiles', ]; }
shopware 5 plugin theme_less_collection
public function addLessFiles(\Enlight_Event_EventArgs $args) { $less = new \Shopware\Components\Theme\LessDefinition( //configuration array(), //less files to compile array( __DIR__ . '/Resources/views/frontend/less/all.less' ), //import directory __DIR__ ); return new Doctrine\Common\Collections\ArrayCollection(array($less)); }
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us