StringStorageInterface::countTranslations

public StringStorageInterface::countTranslations() Counts translations. Return value array The number of translations for each language indexed by language code. File core/modules/locale/src/StringStorageInterface.php, line 156 Class StringStorageInterface Defines the locale string storage interface. Namespace Drupal\locale Code public function countTranslations();

StringLoader::getSource

public StringLoader::getSource($name) Gets the source code of a template, given its name. Parameters string $name The name of the template to load: Return value string The template source code Throws Twig_Error_Loader When $name is not found Overrides Twig_LoaderInterface::getSource File core/lib/Drupal/Core/Template/Loader/StringLoader.php, line 40 Class StringLoader Loads string templates, also known as inline templates. Namespace Drupal\Core\Template\Loader Code public function g

StringLoader::getCacheKey

public StringLoader::getCacheKey($name) Gets the cache key to use for the cache for a given template name. Parameters string $name The name of the template to load: Return value string The cache key Throws Twig_Error_Loader When $name is not found Overrides Twig_LoaderInterface::getCacheKey File core/lib/Drupal/Core/Template/Loader/StringLoader.php, line 47 Class StringLoader Loads string templates, also known as inline templates. Namespace Drupal\Core\Template\Loader Code public fu

StringStorageException

Defines an exception thrown when storage operations fail. Hierarchy class \Drupal\locale\StringStorageException extends \Exception File core/modules/locale/src/StringStorageException.php, line 8 Namespace Drupal\locale Members

StringLoader::isFresh

public StringLoader::isFresh($name, $time) Returns true if the template is still fresh. Parameters string $name The template name: int $time Timestamp of the last modification time of the: cached template Return value bool true if the template is fresh, false otherwise Throws Twig_Error_Loader When $name is not found Overrides Twig_LoaderInterface::isFresh File core/lib/Drupal/Core/Template/Loader/StringLoader.php, line 54 Class StringLoader Loads string templates, also known as inline

StringLoader::exists

public StringLoader::exists($name) Check if we have the source code of a template, given its name. Parameters string $name The name of the template to check if we can load: Return value bool If the template source code is handled by this loader or not Overrides Twig_ExistsLoaderInterface::exists File core/lib/Drupal/Core/Template/Loader/StringLoader.php, line 28 Class StringLoader Loads string templates, also known as inline templates. Namespace Drupal\Core\Template\Loader Code publi

StringInterface::setString

public StringInterface::setString($string) Sets the string contained in this object. Parameters string $string: String to set as value. Return value $this File core/modules/locale/src/StringInterface.php, line 62 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function setString($string);

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);

StringLoader

Loads string templates, also known as inline templates. This loader is intended to be used in a Twig loader chain and whitelists string templates that begin with the following comment: {# inline_template_start #} This class override ensures that the string loader behaves as expected in the loader chain. If Twig's string loader is used as is, any string (even a reference to a file-based Twig template) is treated as a valid template and is rendered instead of a \Twig_Error_Loader exception bein

StringInterface::setValues

public StringInterface::setValues(array $values, $override = TRUE) Sets an array of values as object properties. Parameters array $values: Array with values indexed by property name. bool $override: (optional) Whether to override already set fields, defaults to TRUE. Return value $this File core/modules/locale/src/StringInterface.php, line 136 Class StringInterface Defines the locale string interface. Namespace Drupal\locale Code public function setValues(array $values, $override = T