Drupal 8  8.0.2
ConfigTranslationDeleteForm Class Reference
Inheritance diagram for ConfigTranslationDeleteForm:

Public Member Functions

 __construct (ConfigurableLanguageManagerInterface $language_manager, ConfigMapperManagerInterface $config_mapper_manager, ModuleHandlerInterface $module_handler)
 
 getQuestion ()
 
 getConfirmText ()
 
 getCancelUrl ()
 
 getFormId ()
 
 submitForm (array &$form, FormStateInterface $form_state)
 
- Public Member Functions inherited from ConfirmFormBase
 getDescription ()
 
 getConfirmText ()
 
 getCancelText ()
 
 getFormName ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
- Public Member Functions inherited from FormInterface
 validateForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $languageManager
 
 $configMapperManager
 
 $moduleHandler
 
 $mapper
 
 $language
 

Detailed Description

Builds a form to delete configuration translation.

Constructor & Destructor Documentation

__construct ( ConfigurableLanguageManagerInterface  $language_manager,
ConfigMapperManagerInterface  $config_mapper_manager,
ModuleHandlerInterface  $module_handler 
)

Constructs a ConfigTranslationDeleteForm.

Parameters
\Drupal\language\ConfigurableLanguageManagerInterface$language_managerThe language override configuration storage.
\Drupal\config_translation\ConfigMapperManagerInterface$config_mapper_managerThe configuration mapper manager.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.

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

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container)
static

{}

getCancelUrl ( )

{Returns the route to go to if the user cancels the action.

Returns
A URL object.
}

Implements ConfirmFormInterface.

Referenced by ConfigTranslationDeleteForm\submitForm().

Here is the caller graph for this function:

getConfirmText ( )

{Returns a caption for the button that confirms the action.

Returns
string The form confirmation text.
}

Implements ConfirmFormInterface.

References 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.

getQuestion ( )

{Returns the question to ask the user.

Returns
string The form question. The page title will be set to this value.
}

Implements ConfirmFormInterface.

References t().

Here is the call graph for this function:

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 Cache\getBins(), ConfigTranslationDeleteForm\getCancelUrl(), Drupal\languageManager(), Drupal\moduleHandler(), FormStateInterface\setRedirectUrl(), and t().

Here is the call graph for this function:


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