Drupal 8  8.0.2
TranslateFormBase Class Reference
Inheritance diagram for TranslateFormBase:

Public Member Functions

 __construct (StringStorageInterface $locale_storage, StateInterface $state, LanguageManagerInterface $language_manager)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Member Functions

 translateFilterLoadStrings ()
 
 translateFilterValues ($reset=FALSE)
 
 translateFilters ()
 

Protected Attributes

 $localeStorage
 
 $state
 
 $languageManager
 

Static Protected Attributes

static $filterValues
 

Detailed Description

Defines the locale user interface translation form base.

Provides methods for searching and filtering strings.

Constructor & Destructor Documentation

__construct ( StringStorageInterface  $locale_storage,
StateInterface  $state,
LanguageManagerInterface  $language_manager 
)

Constructs a new TranslationFormBase object.

Parameters
\Drupal\locale\StringStorageInterface$locale_storageThe locale storage.
\Drupal\Core\State\StateInterface$stateThe state service.
\Drupal\Core\Language\LanguageManagerInterface$language_managerThe language manager.

References Drupal\languageManager(), and Drupal\state().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container)
static

{}

translateFilterLoadStrings ( )
protected

Builds a string search query and returns an array of string objects.

Returns
[] Array of objects.

References TranslateFormBase\translateFilterValues().

Referenced by TranslateEditForm\buildForm().

Here is the call graph for this function:

Here is the caller graph for this function:

translateFilters ( )
protected

Lists locale translation filters that can be applied.

References Drupal\languageManager(), and t().

Referenced by TranslateFilterForm\buildForm(), TranslateFilterForm\submitForm(), and TranslateFormBase\translateFilterValues().

Here is the call graph for this function:

Here is the caller graph for this function:

translateFilterValues (   $reset = FALSE)
protected

Builds an array out of search criteria specified in request variables.

Parameters
bool$resetIf the list of values should be reset.
Returns
array The filter values.

References TranslateFormBase\translateFilters().

Referenced by TranslateFilterForm\buildForm(), TranslateEditForm\buildForm(), and TranslateFormBase\translateFilterLoadStrings().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: