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.

5 calls to StringDatabaseStorage::dbStringTable()
StringDatabaseStorage::dbStringDefaults in drupal/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php
Sets default values from storage.
StringDatabaseStorage::dbStringInsert in drupal/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php
Createds a database record for a string object.
StringDatabaseStorage::dbStringKeys in drupal/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php
Gets keys values that are in a database table.
StringDatabaseStorage::dbStringUpdate in drupal/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php
Updates string object in the database.
StringDatabaseStorage::dbStringValues in drupal/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php
Gets field values from a string object that are in the database table.

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