TranslatableMarkup::getUntranslatedString

public TranslatableMarkup::getUntranslatedString() Gets the untranslated string value stored in this translated string. Return value string The string stored in this wrapper. File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 154 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code public function getUntranslatedString() { return $this->string; }

TranslatableMarkup::count

public TranslatableMarkup::count() Returns the string length. Return value int The length of the string. Overrides FormattableMarkup::count File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 236 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code public function count() { return Unicode::strlen($this->render()); }

TranslatableMarkup::getStringTranslation

protected TranslatableMarkup::getStringTranslation() Gets the string translation service. Return value \Drupal\Core\StringTranslation\TranslationInterface The string translation service. File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 222 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code protected function getStringTranslation() { if (!$this->stringTranslation) { $this->stringTranslation = \Dr

TranslatableMarkup::getArguments

public TranslatableMarkup::getArguments() Gets all arguments from this translated string. Return value mixed[] The array of arguments. File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 187 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code public function getArguments() { return $this->arguments; }

TranslatableMarkup::$options

The translation options. Type: array File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 45 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code protected $options;

TranslatableMarkup::$stringTranslation

The string translation service. Type: \Drupal\Core\StringTranslation\TranslationInterface File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 52 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code protected $stringTranslation;

TranslatableMarkup::$translatedMarkup

The translated markup without placeholder replacements. Type: string File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 38 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code protected $translatedMarkup;

TranslatableMarkup

Provides translatable markup class. This object, when cast to a string, will return the formatted, translated string. Avoid casting it to a string yourself, because it is preferable to let the rendering system do the cast as late as possible in the rendering process, so that this object itself can be put, untranslated, into render caches and thus the cache can be shared between different language contexts. Hierarchy class \Drupal\Component\Render\FormattableMarkup implements \Countable, MarkupI

TranslatableMarkup::$string

The string to be translated. Type: string File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 31 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code protected $string;

TranslatableInterface::language

public TranslatableInterface::language() Returns the translation language. Return value \Drupal\Core\Language\LanguageInterface The language object. File core/lib/Drupal/Core/TypedData/TranslatableInterface.php, line 16 Class TranslatableInterface Interface for translatable data. Namespace Drupal\Core\TypedData Code public function language();