protected function StringDatabaseStorage::dbStringTable

Gets table name for storing string object.

Parameters

Drupal\locale\StringInterface $string: The string object.

Return value

string The table name.

File

drupal/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php, line 276
Definition of Drupal\locale\StringDatabaseStorage.

Class

StringDatabaseStorage
Defines the locale string class.

Namespace

Drupal\locale

Code

protected function dbStringTable($string) {
  if ($string
    ->isSource()) {
    return 'locales_source';
  }
  elseif ($string
    ->isTranslation()) {
    return 'locales_target';
  }
}