TranslatableMarkup::getOptions

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

TranslatableMarkup::getOption

public TranslatableMarkup::getOption($name) Gets a specific option from this translated string. Parameters string $name: Option name. Return value mixed The value of this option or empty string of option is not set. File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 167 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code public function getOption($name) { return isset($this->options[$name]) ? $this->o

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::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::$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::$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::$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;

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

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

TranslatableInterface::removeTranslation

public TranslatableInterface::removeTranslation($langcode) Removes the translation identified by the given language code. Parameters string $langcode: The language code identifying the translation to be removed. File core/lib/Drupal/Core/TypedData/TranslatableInterface.php, line 106 Class TranslatableInterface Interface for translatable data. Namespace Drupal\Core\TypedData Code public function removeTranslation($langcode);