function StringStorageInterface::createTranslation
Same name in other branches
- 9 core/modules/locale/src/StringStorageInterface.php \Drupal\locale\StringStorageInterface::createTranslation()
- 10 core/modules/locale/src/StringStorageInterface.php \Drupal\locale\StringStorageInterface::createTranslation()
- 11.x core/modules/locale/src/StringStorageInterface.php \Drupal\locale\StringStorageInterface::createTranslation()
Creates a string translation object bound to this storage but not saved.
Parameters
array $values: (optional) Array with initial values. Defaults to empty array.
Return value
\Drupal\locale\TranslationString New string translation object.
1 method overrides StringStorageInterface::createTranslation()
- StringDatabaseStorage::createTranslation in core/
modules/ locale/ src/ StringDatabaseStorage.php - Creates a string translation object bound to this storage but not saved.
File
-
core/
modules/ locale/ src/ StringStorageInterface.php, line 178
Class
- StringStorageInterface
- Defines the locale string storage interface.
Namespace
Drupal\localeCode
public function createTranslation($values = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.