protected function StringDatabaseStorage::dbFieldTable

Gets table alias for field.

Parameters

string $field: Field name to find the table alias for.

Return value

string Either 's', 't' or 'l' depending on whether the field belongs to source, target or location table table.

1 call to StringDatabaseStorage::dbFieldTable()
StringDatabaseStorage::dbStringSelect in drupal/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php
Builds a SELECT query with multiple conditions and fields.

File

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

Class

StringDatabaseStorage
Defines the locale string class.

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