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::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::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::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::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::render

public TranslatableMarkup::render() Renders the object as a string. Return value string The translated string. Overrides ToStringTrait::render File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 197 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code public function render() { if (!isset($this->translatedMarkup)) { $this->translatedMarkup = $this->getStringTranslation()->translateString($this)

TranslatableMarkup::__construct

public TranslatableMarkup::__construct($string, array $arguments = array(), array $options = array(), TranslationInterface $string_translation = NULL) Constructs a new class instance. When possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise create a new \Drupal\Core\StringTranslation\TranslatableMarkup object directly. Calling the trait's t() method or instantiating a new TranslatableMarkup object serves two purposes: At run-time it translates user-v

TranslatableMarkup::__sleep

public TranslatableMarkup::__sleep() Magic __sleep() method to avoid serializing the string translator. File core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 212 Class TranslatableMarkup Provides translatable markup class. Namespace Drupal\Core\StringTranslation Code public function __sleep() { return array('string', 'arguments', 'options'); }

TranslateEditForm

Defines a translation edit form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\locale\Form\TranslateFormBaseclass \Drupal\locale\Form\TranslateEditForm File core/modules/locale/src/Form/TranslateEditForm.php, line 12 Namespace Drupal\locale\Form Members Name Modifiers Type

TranslateEditForm::buildForm

public TranslateEditForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/locale/src/Form/TranslateEditForm.php, line 24 Class TranslateEditForm Defines a translation edit form. Namespace Drupal\locale\Form