propagateConfigOverrideCacheability example

$this->cache[$cache_key] = $this->createConfigObject($name$immutable);
        $this->cache[$cache_key]->initWithData($data);
        if ($immutable) {
          if (isset($module_overrides[$name])) {
            $this->cache[$cache_key]->setModuleOverride($module_overrides[$name]);
          }
          if (isset($GLOBALS['config'][$name])) {
            $this->cache[$cache_key]->setSettingsOverride($GLOBALS['config'][$name]);
          }
        }

        $this->propagateConfigOverrideCacheability($cache_key$name);

        $list[$name] = $this->cache[$cache_key];
      }
    }

    return $list;
  }

  /** * Get arbitrary overrides for the named configuration objects from modules. * * @param array $names * The names of the configuration objects to get overrides for. * * @return array * An array of overrides keyed by the configuration object name. */
Home | Imprint | This part of the site doesn't use cookies.