StringDatabaseStorage::dbStringTable

protected StringDatabaseStorage::dbStringTable($string)

Gets table name for storing string object.

Parameters

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

Return value

string The table name.

File

core/modules/locale/src/StringDatabaseStorage.php, line 273

Class

StringDatabaseStorage
Defines a class to store localized strings in the database.

Namespace

Drupal\locale

Code

protected function dbStringTable($string) {
  if ($string->isSource()) {
    return 'locales_source';
  }
  elseif ($string->isTranslation()) {
    return 'locales_target';
  }
}
doc_Drupal
2016-10-29 09:45:07
Comments
Leave a Comment

Please login to continue.