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

Defines the locale user interface translation form base. Provides methods for searching and filtering strings. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\locale\Form\TranslateFormBase File core/modules/locale/src/Form/TranslateFormBase.php, line 16 Namespace Drupal\locale\Form M

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

File core/modules/locale/src/Form/TranslateFormBase.php, line 44 Class TranslateFormBase Defines the locale user interface translation form base. Namespace Drupal\locale\Form Code protected static $filterValues;

TranslateFilterForm::submitForm

public TranslateFilterForm::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/TranslateFilterForm.php, line 82 Class TranslateFilterForm Provides a filtered translation edit form. Namespace Drupal\locale\Form Code publi

TranslateFilterForm::resetForm

public TranslateFilterForm::resetForm(array &$form, FormStateInterface $form_state) Provides a submit handler for the reset button. File core/modules/locale/src/Form/TranslateFilterForm.php, line 95 Class TranslateFilterForm Provides a filtered translation edit form. Namespace Drupal\locale\Form Code public function resetForm(array &$form, FormStateInterface $form_state) { $_SESSION['locale_translate_filter'] = array(); $form_state->setRedirect('locale.translate_page');

TranslateFilterForm

Provides a filtered 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\TranslateFilterForm File core/modules/locale/src/Form/TranslateFilterForm.php, line 10 Namespace Drupal\locale\Form Members Name Modif

TranslateFilterForm::buildForm

public TranslateFilterForm::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/TranslateFilterForm.php, line 22 Class TranslateFilterForm Provides a filtered translation edit form. Namespace Drup

TranslateFilterForm::getFormId

public TranslateFilterForm::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/TranslateFilterForm.php, line 15 Class TranslateFilterForm Provides a filtered translation edit form. Namespace Drupal\locale\Form Code public function getFormId() { return 'locale_translate_filter_form'; }