Drupal 8  8.0.2
ImportForm Class Reference
Inheritance diagram for ImportForm:

Public Member Functions

 __construct (ModuleHandlerInterface $module_handler, ConfigurableLanguageManagerInterface $language_manager)
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 validateForm (array &$form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $file
 
 $moduleHandler
 
 $languageManager
 

Detailed Description

Form constructor for the translation import screen.

Constructor & Destructor Documentation

__construct ( ModuleHandlerInterface  $module_handler,
ConfigurableLanguageManagerInterface  $language_manager 
)

Constructs a form for language import.

Parameters
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler service.
\Drupal\language\ConfigurableLanguageManagerInterface$language_managerThe configurable language manager.

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

Here is the call graph for this function:

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state 
)

Form constructor for the translation import screen.

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

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

getFormId ( )

{}

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References batch_set(), ConfigurableLanguage\createFromLangcode(), FormStateInterface\getValue(), Drupal\languageManager(), Drupal\moduleHandler(), FormStateInterface\setRedirect(), and t().

Here is the call graph for this function:

validateForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References FormStateInterface\setErrorByName(), and t().

Here is the call graph for this function:


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