function locale_storage

Gets the locale storage controller class .

Return value

Drupal\locale\StringStorageInterface

2 calls to locale_storage()
locale in drupal/core/modules/locale/locale.module
Provides interface translation services.
LocaleStringTest::setUp in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleStringTest.php
Sets up a Drupal site for running functional and integration tests.

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;
}