Translation::__construct

public Translation::__construct(array $values) Constructs a new class instance. Parses values passed into this class through the t() function in Drupal and handles an optional context for the string. Parameters array $values: Possible array keys: value (required): the string that is to be translated. arguments (optional): an array with placeholder replacements, keyed by placeholder. context (optional): a string that describes the context of "value"; File core/lib/Drupal/Core/Annotation/Tr

TranslationInterface

Interface for the translation.manager translation service. Hierarchy interface \Drupal\Core\StringTranslation\TranslationInterface Related topics Internationalization Internationalization and translation File core/lib/Drupal/Core/StringTranslation/TranslationInterface.php, line 10 Namespace Drupal\Core\StringTranslation Members Name Modifiers Type Description TranslationInterface::formatPlural public function Formats a string containing a count of items. TranslationI

TranslateFormBase::__construct

public TranslateFormBase::__construct(StringStorageInterface $locale_storage, StateInterface $state, LanguageManagerInterface $language_manager) Constructs a new TranslationFormBase object. Parameters \Drupal\locale\StringStorageInterface $locale_storage: The locale storage. \Drupal\Core\State\StateInterface $state: The state service. \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager. File core/modules/locale/src/Form/TranslateFormBase.php, line 56 Class

Translation

Defines a translatable annotation object. Some metadata within an annotation needs to be translatable. This class supports that need by allowing both the translatable string and, if specified, a context for that string. The string (with optional context) is passed into t(). Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterfaceclass \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI tex

Translation::$translation

The string translation object. Type: \Drupal\Core\StringTranslation\TranslatableMarkup File core/lib/Drupal/Core/Annotation/Translation.php, line 60 Class Translation Defines a translatable annotation object. Namespace Drupal\Core\Annotation Code protected $translation;

Translation::get

public Translation::get() Gets the value of an annotation. Overrides AnnotationInterface::get File core/lib/Drupal/Core/Annotation/Translation.php, line 90 Class Translation Defines a translatable annotation object. Namespace Drupal\Core\Annotation Code public function get() { return $this->translation; }

TranslateFormBase::$state

The state store. Type: \Drupal\Core\State\StateInterface File core/modules/locale/src/Form/TranslateFormBase.php, line 30 Class TranslateFormBase Defines the locale user interface translation form base. Namespace Drupal\locale\Form Code protected $state;

TranslateFormBase::translateFilterValues

protected TranslateFormBase::translateFilterValues($reset = FALSE) Builds an array out of search criteria specified in request variables. Parameters bool $reset: If the list of values should be reset. Return value array The filter values. File core/modules/locale/src/Form/TranslateFormBase.php, line 121 Class TranslateFormBase Defines the locale user interface translation form base. Namespace Drupal\locale\Form Code protected function translateFilterValues($reset = FALSE) { if (!$r

TranslateFormBase::$localeStorage

The locale storage. Type: \Drupal\locale\StringStorageInterface File core/modules/locale/src/Form/TranslateFormBase.php, line 23 Class TranslateFormBase Defines the locale user interface translation form base. Namespace Drupal\locale\Form Code protected $localeStorage;

TranslateFormBase::translateFilterLoadStrings

protected TranslateFormBase::translateFilterLoadStrings() Builds a string search query and returns an array of string objects. Return value \Drupal\locale\TranslationString[] Array of \Drupal\locale\TranslationString objects. File core/modules/locale/src/Form/TranslateFormBase.php, line 79 Class TranslateFormBase Defines the locale user interface translation form base. Namespace Drupal\locale\Form Code protected function translateFilterLoadStrings() { $filter_values = $this->tran