Sets default values from storage.
Drupal\locale\StringInterface $string: The string object.
string $table: (optional) The table name.
protected function dbStringDefaults($string, $table = NULL) {
$table = $table ? $table : $this
->dbStringTable($string);
if ($table && ($schema = drupal_get_schema($table))) {
$values = array();
foreach ($schema['fields'] as $name => $info) {
if (isset($info['default'])) {
$values[$name] = $info['default'];
}
}
$string
->setValues($values, FALSE);
}
}