Drupal 8  8.0.2
ModulesUninstallConfirmForm Class Reference
Inheritance diagram for ModulesUninstallConfirmForm:

Public Member Functions

 __construct (ModuleInstallerInterface $module_installer, KeyValueStoreExpirableInterface $key_value_expirable, ConfigManagerInterface $config_manager, EntityManagerInterface $entity_manager)
 
 getQuestion ()
 
 getConfirmText ()
 
 getCancelUrl ()
 
 getDescription ()
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 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)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $moduleInstaller
 
 $keyValueExpirable
 
 $configManager
 
 $entityManager
 
 $modules = array()
 

Detailed Description

Builds a confirmation form to uninstall selected modules.

Constructor & Destructor Documentation

__construct ( ModuleInstallerInterface  $module_installer,
KeyValueStoreExpirableInterface  $key_value_expirable,
ConfigManagerInterface  $config_manager,
EntityManagerInterface  $entity_manager 
)

Constructs a ModulesUninstallConfirmForm object.

Parameters
\Drupal\Core\Extension\ModuleInstallerInterface$module_installerThe module installer.
\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface$key_value_expirableThe key value expirable factory.
\Drupal\Core\Config\ConfigManagerInterface$config_managerThe configuration manager.
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.

References Drupal\entityManager(), and Drupal\keyValueExpirable().

Here is the call graph for this function:

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state 
)

{}

References Drupal\currentUser(), Drupal\entityManager(), Drupal\keyValueExpirable(), and t().

Here is the call graph for this function:

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 ModulesUninstallConfirmForm\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:

getDescription ( )

{Returns additional text to display as a description.

Returns
string The form description.
}

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 
)

{}

References Drupal\currentUser(), ModulesUninstallConfirmForm\getCancelUrl(), Drupal\keyValueExpirable(), and t().

Here is the call graph for this function:


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