getDatabaseStorage example


  public static function get($class_loader = NULL) {
    $bootstrap_config_storage = Settings::get('bootstrap_config_storage');
    $storage_backend = FALSE;
    if (!empty($bootstrap_config_storage) && is_callable($bootstrap_config_storage)) {
      $storage_backend = call_user_func($bootstrap_config_storage$class_loader);
    }
    // Fallback to the DatabaseStorage.     return $storage_backend ?: self::getDatabaseStorage();
  }

  /** * Returns a Database configuration storage implementation. * * @return \Drupal\Core\Config\DatabaseStorage */
  public static function getDatabaseStorage() {
    return new DatabaseStorage(Database::getConnection(), 'config');
  }

}
Home | Imprint | This part of the site doesn't use cookies.