You are here

public function StringDatabaseStorage::createString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/locale/src/StringDatabaseStorage.php \Drupal\locale\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 229
Contains \Drupal\locale\StringDatabaseStorage.

Class

StringDatabaseStorage
Defines a class to store localized strings in the database.

Namespace

Drupal\locale

Code

public function createString($values = array()) {
  return new SourceString($values + array(
    'storage' => $this,
  ));
}