function locale_storage

Gets the locale storage controller class .

Return value

Drupal\locale\StringStorageInterface

2 calls to locale_storage()

File

drupal/core/modules/locale/locale.module, line 357
Enables the translation of the user interface to languages other than English.

Code

function locale_storage() {
  $storage =& drupal_static(__FUNCTION__);
  if (!isset($storage)) {
    $options = array(
      'target' => 'default',
    );
    $storage = new StringDatabaseStorage(Database::getConnection($options['target']), $options);
  }
  return $storage;
}