function StringDatabaseStorage::createString
Creates a source string object bound to this storage but not saved.
Parameters
array $values: (optional) Array with initial values. Defaults to empty array.
Return value
\Drupal\locale\SourceString New source string object.
Overrides StringStorageInterface::createString
File
- 
              core/
modules/ locale/ src/ StringDatabaseStorage.php, line 225  
Class
- StringDatabaseStorage
 - Defines a class to store localized strings in the database.
 
Namespace
Drupal\localeCode
public function createString($values = []) {
  return new SourceString($values + [
    'storage' => $this,
  ]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.