TranslationString::isSource

public TranslationString::isSource() Checks whether the object is a source string. Return value bool TRUE if the object is a source string, FALSE otherwise. Overrides StringInterface::isSource File core/modules/locale/src/TranslationString.php, line 72 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public function isSource() { return FALSE; }

TranslationString::isNew

public TranslationString::isNew() Checks whether the object is not saved to storage yet. Return value bool TRUE if the object exists in the storage, FALSE otherwise. Overrides StringInterface::isNew File core/modules/locale/src/TranslationString.php, line 101 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public function isNew() { return $this->isNew; }

TranslationString::getString

public TranslationString::getString() Gets plain string contained in this object. Return value string The string contained in this object. Overrides StringInterface::getString File core/modules/locale/src/TranslationString.php, line 86 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public function getString() { return isset($this->translation) ? $this->translation : ''; }

TranslationString::$translation

The string translation. Type: string File core/modules/locale/src/TranslationString.php, line 26 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public $translation;

TranslationString::$customized

Integer indicating whether this string is customized. Type: int File core/modules/locale/src/TranslationString.php, line 33 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public $customized;

TranslationString::$isNew

Boolean indicating whether the string object is new. Type: bool File core/modules/locale/src/TranslationString.php, line 40 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code protected $isNew;

TranslationString::$language

The language code. Type: string File core/modules/locale/src/TranslationString.php, line 19 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public $language;

TranslationString

Defines the locale translation string object. This class represents a translation of a source string to a given language, thus it must have at least a 'language' which is the language code and a 'translation' property which is the translated text of the source string in the specified language. Hierarchy class \Drupal\locale\StringBase implements StringInterfaceclass \Drupal\locale\TranslationString File core/modules/locale/src/TranslationString.php, line 13 Namespace Drupal\locale Mem

TranslationStatusForm::validateForm

public TranslationStatusForm::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/TranslationStatusForm.php, line 255 Class TranslationStatusForm Provides a translation status form. Namespace Drupal\locale\Form Code public

TranslationStatusForm::__construct

public TranslationStatusForm::__construct(ModuleHandlerInterface $module_handler, StateInterface $state) Constructs a TranslationStatusForm object. Parameters ModuleHandlerInterface $module_handler: A module handler. \Drupal\Core\State\StateInterface $state: The state service. File core/modules/locale/src/Form/TranslationStatusForm.php, line 48 Class TranslationStatusForm Provides a translation status form. Namespace Drupal\locale\Form Code public function __construct(ModuleHandlerInt