TranslateFormBase::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/locale/src/Form/TranslateFormBase.php, line 37 Class TranslateFormBase Defines the locale user interface translation form base. Namespace Drupal\locale\Form Code protected $languageManager;

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

public static TranslateFormBase::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servic

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

TranslateFormBase::translateFilters

protected TranslateFormBase::translateFilters() Lists locale translation filters that can be applied. File core/modules/locale/src/Form/TranslateFormBase.php, line 154 Class TranslateFormBase Defines the locale user interface translation form base. Namespace Drupal\locale\Form Code protected function translateFilters() { $filters = array(); // Get all languages, except English. $this->languageManager->reset(); $languages = $this->languageManager->getLanguages();

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