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

public TranslationString::delete() Deletes string object from storage. Return value $this Throws \Drupal\locale\StringStorageException In case of failures, an exception is thrown. Overrides StringBase::delete File core/modules/locale/src/TranslationString.php, line 117 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public function delete() { parent::delete(); $this->isNew = TRUE; return $this; }

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

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

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