Drupal 8  8.0.2
ConfigTranslationFormBase Class Reference
Inheritance diagram for ConfigTranslationFormBase:

Public Member Functions

 __construct (TypedConfigManagerInterface $typed_config_manager, ConfigMapperManagerInterface $config_mapper_manager, ConfigurableLanguageManagerInterface $language_manager)
 
 getBaseFormId ()
 
 submitForm (array &$form, FormStateInterface $form_state)
 
- Public Member Functions inherited from FormInterface
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 validateForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 
static createFormElement (TypedDataInterface $schema)
 

Protected Attributes

 $typedConfigManager
 
 $configMapperManager
 
 $mapper
 
 $languageManager
 
 $language
 
 $sourceLanguage
 
 $baseConfigData = array()
 

Detailed Description

Provides a base form for configuration translations.

Constructor & Destructor Documentation

__construct ( TypedConfigManagerInterface  $typed_config_manager,
ConfigMapperManagerInterface  $config_mapper_manager,
ConfigurableLanguageManagerInterface  $language_manager 
)

Constructs a ConfigTranslationFormBase.

Parameters
\Drupal\Core\Config\TypedConfigManagerInterface$typed_config_managerThe typed configuration manager.
\Drupal\config_translation\ConfigMapperManagerInterface$config_mapper_managerThe configuration mapper manager.
\Drupal\language\ConfigurableLanguageManagerInterface$language_managerThe configurable language manager.

References Drupal\languageManager().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container)
static

{}

static createFormElement ( TypedDataInterface  $schema)
static

Creates a form element builder.

Parameters
\Drupal\Core\TypedData\TypedDataInterface$schemaSchema definition of configuration.
Returns
|null The element builder object if possible.

References TypedDataInterface\getDataDefinition(), and t().

Referenced by ListElement\getTranslationBuild(), ListElement\setConfig(), and ConfigTranslationFormBase\submitForm().

Here is the call graph for this function:

Here is the caller graph for this function:

getBaseFormId ( )

{Returns a string identifying the base form.

Returns
string|null The string identifying the base form or NULL if this is not a base form.
}

Implements BaseFormIdInterface.

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{Form submission handler.

Parameters
array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.
}

Implements FormInterface.

References Drupal\configFactory(), ConfigTranslationFormBase\createFormElement(), FormStateInterface\getValue(), Drupal\languageManager(), and FormStateInterface\setRedirect().

Here is the call graph for this function:


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