Ejemplo n.º 1
0
 /**
  * Get global LESS variables.
  *
  * @param Config $config
  * @since 1.22
  * @return array Map of variable names to string CSS values.
  */
 public static function getLessVars(Config $config)
 {
     if (!self::$lessVars) {
         $lessVars = $config->get('ResourceLoaderLESSVars');
         Hooks::run('ResourceLoaderGetLessVars', array(&$lessVars));
         // Sort by key to ensure consistent hashing for cache lookups.
         ksort($lessVars);
         self::$lessVars = $lessVars;
     }
     return self::$lessVars;
 }
Ejemplo n.º 2
0
 /**
  * Get global LESS variables.
  *
  * @param Config $config
  * @since 1.22
  * @return array Map of variable names to string CSS values.
  */
 public static function getLessVars(Config $config)
 {
     if (!self::$lessVars) {
         $lessVars = $config->get('ResourceLoaderLESSVars');
         Hooks::run('ResourceLoaderGetLessVars', array(&$lessVars));
         self::$lessVars = $lessVars;
     }
     return self::$lessVars;
 }