Drupal 8  8.0.2
ModuleInstaller Class Reference
Inheritance diagram for ModuleInstaller:

Public Member Functions

 __construct ($root, ModuleHandlerInterface $module_handler, DrupalKernelInterface $kernel)
 
 addUninstallValidator (ModuleUninstallValidatorInterface $uninstall_validator)
 
 validateUninstall (array $module_list)
 

Protected Member Functions

 removeCacheBins ($module)
 
 updateKernel ($module_filenames)
 

Protected Attributes

 $moduleHandler
 
 $kernel
 
 $root
 
 $uninstallValidators
 

Detailed Description

Default implementation of the module installer.

It registers the module in config, installs its own configuration, installs the schema, updates the Drupal kernel and more.

Constructor & Destructor Documentation

__construct (   $root,
ModuleHandlerInterface  $module_handler,
DrupalKernelInterface  $kernel 
)

Constructs a new ModuleInstaller instance.

Parameters
string$rootThe app root.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.
\Drupal\Core\DrupalKernelInterface$kernelThe drupal kernel.
See Also

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

Here is the call graph for this function:

Member Function Documentation

addUninstallValidator ( ModuleUninstallValidatorInterface  $uninstall_validator)

{}

removeCacheBins (   $module)
protected

Helper method for removing all cache bins registered by a given module.

Parameters
string$moduleThe name of the module for which to remove all registered cache bins.

References Yaml\decode(), and Drupal\service().

Here is the call graph for this function:

updateKernel (   $module_filenames)
protected

Updates the kernel module list.

Parameters
string$module_filenamesThe list of installed modules.

References Drupal\moduleHandler().

Here is the call graph for this function:

validateUninstall ( array  $module_list)

{}


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