StringInterface::setStorage

public StringInterface::setStorage($storage) Sets the string storage. Parameters \Drupal\locale\StringStorageInterface $storage: The storage to use for this string. Return value $this File core/modules/locale/src/StringInterface.php, line 100 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function setStorage($storage);

StringInterface::setPlurals

public StringInterface::setPlurals($plurals) Sets this string using array of plural values. Serializes plural variants in one string glued by LOCALE_PLURAL_DELIMITER. Parameters array $plurals: Array of strings with plural variants. Return value $this File core/modules/locale/src/StringInterface.php, line 82 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function setPlurals($plurals);

StringInterface::setId

public StringInterface::setId($id) Sets the string unique identifier. Parameters int $id: The string identifier. Return value $this File core/modules/locale/src/StringInterface.php, line 26 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function setId($id);

StringInterface::save

public StringInterface::save() Saves string object to storage. Return value $this Throws \Drupal\locale\StringStorageException In case of failures, an exception is thrown. File core/modules/locale/src/StringInterface.php, line 204 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function save();

StringInterface::isTranslation

public StringInterface::isTranslation() Checks whether the object is a translation string. Return value bool TRUE if the object is a translation string, FALSE otherwise. File core/modules/locale/src/StringInterface.php, line 124 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function isTranslation();

StringInterface::isSource

public StringInterface::isSource() Checks whether the object is a source string. Return value bool TRUE if the object is a source string, FALSE otherwise. File core/modules/locale/src/StringInterface.php, line 116 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function isSource();

StringInterface::isNew

public StringInterface::isNew() Checks whether the object is not saved to storage yet. Return value bool TRUE if the object exists in the storage, FALSE otherwise. File core/modules/locale/src/StringInterface.php, line 108 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function isNew();

StringInterface::hasLocation

public StringInterface::hasLocation($type, $name) Checks whether the string has a given location. Parameters string $type: Location type. string $name: Location name. Return value bool TRUE if the string has a location with this type and name. File core/modules/locale/src/StringInterface.php, line 194 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function hasLocation($type, $name);

StringInterface::getVersion

public StringInterface::getVersion() Gets the string version. Return value string Version identifier. File core/modules/locale/src/StringInterface.php, line 34 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function getVersion();

StringInterface::getValues

public StringInterface::getValues(array $fields) Gets field values that are set for given field names. Parameters array $fields: Array of field names. Return value array Array of field values indexed by field name. File core/modules/locale/src/StringInterface.php, line 147 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function getValues(array $fields);