StringStorageInterface::save

public StringStorageInterface::save($string) Save string object to storage. Parameters \Drupal\locale\StringInterface $string: The string object. Return value \Drupal\locale\StringStorageInterface The called object. Throws \Drupal\locale\StringStorageException In case of failures, an exception is thrown. File core/modules/locale/src/StringStorageInterface.php, line 110 Class StringStorageInterface Defines the locale string storage interface. Namespace Drupal\locale Code public funct

StringStorageInterface::deleteTranslations

public StringStorageInterface::deleteTranslations($conditions) Deletes translations using conditions. Parameters array $conditions: Array with simple field conditions for string translations. File core/modules/locale/src/StringStorageInterface.php, line 140 Class StringStorageInterface Defines the locale string storage interface. Namespace Drupal\locale Code public function deleteTranslations($conditions);

StringStorageInterface::findString

public StringStorageInterface::findString(array $conditions) Loads a string source object, fast query. These 'fast query' methods are the ones in the critical path and their implementation must be optimized for speed, as they may run many times in a single page request. Parameters array $conditions: (optional) Array with conditions that will be used to filter the strings returned and may include all of the conditions defined by getStrings(). Return value \Drupal\locale\SourceString|null Minim

StringStorageInterface::getStrings

public StringStorageInterface::getStrings(array $conditions = array(), array $options = array()) Loads multiple source string objects. Parameters array $conditions: (optional) Array with conditions that will be used to filter the strings returned and may include any of the following elements: Any simple field value indexed by field name. 'translated', TRUE to get only translated strings or FALSE to get only untranslated strings. If not set it returns both translated and untranslated strings th

StringStorageInterface::findTranslation

public StringStorageInterface::findTranslation(array $conditions) Loads a string translation object, fast query. This function must only be used when actually translating strings as it will have the effect of updating the string version. For other purposes the getTranslations() method should be used instead. Parameters array $conditions: (optional) Array with conditions that will be used to filter the strings returned and may include all of the conditions defined by getStrings(). Return value

StringStorageInterface::getLocations

public StringStorageInterface::getLocations(array $conditions = array()) Loads string location information. Parameters array $conditions: (optional) Array with conditions to filter the locations that may be any of the following elements: 'sid', The string identifier. 'type', The location type. 'name', The location name. Return value \Drupal\locale\StringInterface[] Array of \Drupal\locale\StringInterface objects matching the conditions. See also \Drupal\locale\StringStorageInterface::getSt

StringStorageInterface::delete

public StringStorageInterface::delete($string) Delete string from storage. Parameters \Drupal\locale\StringInterface $string: The string object. Return value \Drupal\locale\StringStorageInterface The called object. Throws \Drupal\locale\StringStorageException In case of failures, an exception is thrown. File core/modules/locale/src/StringStorageInterface.php, line 124 Class StringStorageInterface Defines the locale string storage interface. Namespace Drupal\locale Code public functi

StringStorageInterface::countStrings

public StringStorageInterface::countStrings() Counts source strings. Return value int The number of source strings contained in the storage. File core/modules/locale/src/StringStorageInterface.php, line 148 Class StringStorageInterface Defines the locale string storage interface. Namespace Drupal\locale Code public function countStrings();

StringStorageInterface

Defines the locale string storage interface. Hierarchy interface \Drupal\locale\StringStorageInterface File core/modules/locale/src/StringStorageInterface.php, line 8 Namespace Drupal\locale Members Name Modifiers Type Description StringStorageInterface::countStrings public function Counts source strings. StringStorageInterface::countTranslations public function Counts translations. StringStorageInterface::createString public function Creates a source str

StringStorageInterface::createTranslation

public StringStorageInterface::createTranslation($values = array()) 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. File core/modules/locale/src/StringStorageInterface.php, line 178 Class StringStorageInterface Defines the locale string storage interface. Namespace Drupal\locale Code public funct