protected function StringDatabaseStorage::dbStringTable in Localization update 7.2
Gets table name for storing string object.
Parameters
StringInterface $string: The string object.
Return value
string The table name.
File
- includes/
locale/ StringDatabaseStorage.php, line 214 - Definition of StringDatabaseStorage.
Class
- StringDatabaseStorage
- Defines the locale string class.
Code
protected function dbStringTable(StringInterface $string) {
if ($string
->isSource()) {
return 'locales_source';
}
elseif ($string
->isTranslation()) {
return 'locales_target';
}
}