You are here

public static function Bootstrap::variable_get in AmazonS3 7.2

Same name in this branch
  1. 7.2 tests/DrupalAdapter/Bootstrap.php \Drupal\amazons3Test\DrupalAdapter\Bootstrap::variable_get()
  2. 7.2 src/DrupalAdapter/Bootstrap.php \Drupal\amazons3\DrupalAdapter\Bootstrap::variable_get()

Static version of variable_get() for testing.

Parameters

string $name:

null $default:

Return value

string

File

tests/DrupalAdapter/Bootstrap.php, line 27

Class

Bootstrap
Methods that map to includes/bootstrap.inc.

Namespace

Drupal\amazons3Test\DrupalAdapter

Code

public static function variable_get($name, $default = NULL) {
  if (isset(static::$variableData[$name])) {
    return static::$variableData[$name];
  }
  if (isset($default)) {
    return $default;
  }
}