Drupal 8  8.0.2
LanguageAddForm Class Reference
Inheritance diagram for LanguageAddForm:

Public Member Functions

 getFormId ()
 
 form (array $form, FormStateInterface $form_state)
 
 save (array $form, FormStateInterface $form_state)
 
 actions (array $form, FormStateInterface $form_state)
 
 validateCustom (array $form, FormStateInterface $form_state)
 
 validatePredefined ($form, FormStateInterface $form_state)
 
- Public Member Functions inherited from LanguageFormBase
 __construct (ConfigurableLanguageManagerInterface $language_manager)
 
 commonForm (array &$form)
 
 validateCommon (array $form, FormStateInterface $form_state)
 
- Public Member Functions inherited from EntityForm
 setOperation ($operation)
 
 getBaseFormId ()
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 form (array $form, FormStateInterface $form_state)
 
 processForm ($element, FormStateInterface $form_state, $form)
 
 afterBuild (array $element, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 
 save (array $form, FormStateInterface $form_state)
 
 buildEntity (array $form, FormStateInterface $form_state)
 
 getEntity ()
 
 setEntity (EntityInterface $entity)
 
 getEntityFromRouteMatch (RouteMatchInterface $route_match, $entity_type_id)
 
 getOperation ()
 
 setModuleHandler (ModuleHandlerInterface $module_handler)
 
 setEntityManager (EntityManagerInterface $entity_manager)
 
 setEntityTypeManager (EntityTypeManagerInterface $entity_type_manager)
 
- Public Member Functions inherited from EntityFormInterface
 setStringTranslation (TranslationInterface $string_translation)
 
- Public Member Functions inherited from FormInterface
 validateForm (array &$form, FormStateInterface $form_state)
 

Protected Member Functions

 copyFormValuesToEntity (EntityInterface $entity, array $form, FormStateInterface $form_state)
 
- Protected Member Functions inherited from EntityForm
 init (FormStateInterface $form_state)
 
 actionsElement (array $form, FormStateInterface $form_state)
 
 actions (array $form, FormStateInterface $form_state)
 
 copyFormValuesToEntity (EntityInterface $entity, array $form, FormStateInterface $form_state)
 
 prepareEntity ()
 
 prepareInvokeAll ($hook, FormStateInterface $form_state)
 

Additional Inherited Members

- Static Public Member Functions inherited from LanguageFormBase
static create (ContainerInterface $container)
 
- Protected Attributes inherited from LanguageFormBase
 $languageManager
 
- Protected Attributes inherited from EntityForm
 $operation
 
 $moduleHandler
 
 $entityManager
 
 $entityTypeManager
 
 $entity
 

Detailed Description

Controller for language addition forms.

Member Function Documentation

actions ( array  $form,
FormStateInterface  $form_state 
)

{}

copyFormValuesToEntity ( EntityInterface  $entity,
array  $form,
FormStateInterface  $form_state 
)
protected

{}

References LanguageInterface\DIRECTION_LTR, LanguageManager\getStandardLanguageList(), FormStateInterface\getValue(), Drupal\languageManager(), and LanguageInterface\STATE_CONFIGURABLE.

Here is the call graph for this function:

form ( array  $form,
FormStateInterface  $form_state 
)

{}

References LanguageFormBase\commonForm(), FormStateInterface\getValue(), Drupal\languageManager(), and t().

Here is the call graph for this function:

getFormId ( )

{Returns a unique string identifying the form.

Returns
string The unique string identifying the form.
}

Implements FormInterface.

save ( array  $form,
FormStateInterface  $form_state 
)

{Form submission handler for the 'save' action.Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved.

Parameters
array$formAn associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the form.
Returns
int Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed.
}

Implements EntityFormInterface.

References Drupal\logger(), Drupal\moduleHandler(), FormStateInterface\setRedirectUrl(), t(), and Drupal\url().

Here is the call graph for this function:

validateCustom ( array  $form,
FormStateInterface  $form_state 
)

Validates the language addition form on custom language button.

References FormStateInterface\getValue(), Drupal\languageManager(), FormStateInterface\setErrorByName(), t(), and LanguageFormBase\validateCommon().

Here is the call graph for this function:

validatePredefined (   $form,
FormStateInterface  $form_state 
)

Element specific validator for the Add language button.

References FormStateInterface\getValue(), Drupal\languageManager(), FormStateInterface\setErrorByName(), and t().

Here is the call graph for this function:


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