protected StringDatabaseStorage::dbFieldTable($field)
Gets table alias for field.
Parameters
string $field: One of the field names of the locales_source, locates_location, locales_target tables to find the table alias for.
Return value
string One of the following values:
- 's' for "source", "context", "version" (locales_source table fields).
- 'l' for "type", "name" (locales_location table fields)
- 't' for "language", "translation", "customized" (locales_target table fields)
File
- core/modules/locale/src/StringDatabaseStorage.php, line 252
Class
- StringDatabaseStorage
- Defines a class to store localized strings in the database.
Namespace
Drupal\locale
Code
protected function dbFieldTable($field) {
if (in_array($field, array('language', 'translation', 'customized'))) {
return 't';
}
elseif (in_array($field, array('type', 'name'))) {
return 'l';
}
else {
return 's';
}
}
Please login to continue.