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

public TranslateEditForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/locale/src/Form/TranslateEditForm.php, line 17 Class TranslateEditForm Defines a translation edit form. Namespace Drupal\locale\Form Code public function getFormId() { return 'locale_translate_edit_form'; }

TranslateEditForm::validateForm

public TranslateEditForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/locale/src/Form/TranslateEditForm.php, line 154 Class TranslateEditForm Defines a translation edit form. Namespace Drupal\locale\Form Code public function valid

TranslateEditForm::submitForm

public TranslateEditForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/locale/src/Form/TranslateEditForm.php, line 170 Class TranslateEditForm Defines a translation edit form. Namespace Drupal\locale\Form Code public function subm

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

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::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::__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'); }

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