Drupal 8  8.0.2
LanguageFormBase Class Reference
Inheritance diagram for LanguageFormBase:

Public Member Functions

 __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)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $languageManager
 
- Protected Attributes inherited from EntityForm
 $operation
 
 $moduleHandler
 
 $entityManager
 
 $entityTypeManager
 
 $entity
 

Additional Inherited Members

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

Detailed Description

Base form for language add and edit forms.

Constructor & Destructor Documentation

__construct ( ConfigurableLanguageManagerInterface  $language_manager)

Constructs a ContentEntityForm object.

Parameters
\Drupal\language\ConfigurableLanguageManagerInterface$language_managerThe configurable language manager.

References Drupal\languageManager().

Here is the call graph for this function:

Member Function Documentation

commonForm ( array &  $form)

Common elements of the language addition and editing form.

References LanguageInterface\DIRECTION_LTR, LanguageInterface\DIRECTION_RTL, and t().

Referenced by LanguageEditForm\form(), and LanguageAddForm\form().

Here is the call graph for this function:

Here is the caller graph for this function:

static create ( ContainerInterface  $container)
static

{}

validateCommon ( array  $form,
FormStateInterface  $form_state 
)

Validates the language editing element.

References Html\escape(), FormStateInterface\getValue(), FormStateInterface\setErrorByName(), and t().

Referenced by LanguageAddForm\validateCustom().

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: