You are here

class ModuleInstaller in CiviCRM Entity 8.3

Class ContentUninstallValidator.

Hierarchy

Expanded class hierarchy of ModuleInstaller

1 string reference to 'ModuleInstaller'
civicrm_entity.services.yml in ./civicrm_entity.services.yml
civicrm_entity.services.yml
1 service uses ModuleInstaller
civicrm_entity.module_installer in ./civicrm_entity.services.yml
Drupal\civicrm_entity\ModuleInstaller

File

src/ModuleInstaller.php, line 14

Namespace

Drupal\civicrm_entity
View source
class ModuleInstaller extends ExtensionModuleInstaller {

  /**
   * The module installer.
   *
   * @var \Drupal\Core\Extension\ModuleInstallerInterface
   */
  protected $moduleInstaller;

  /**
   * {@inheritdoc}
   */
  public function __construct(ModuleInstallerInterface $module_installer, $root, ModuleHandlerInterface $module_handler, DrupalKernelInterface $kernel) {
    parent::__construct($root, $module_handler, $kernel);
    $this->moduleInstaller = $module_installer;
  }

  /**
   * {@inheritdoc}
   */
  public function validateUninstall(array $module_list) {
    $reasons = parent::validateUninstall($module_list);
    unset($reasons['civicrm_entity']);
    return $reasons;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ModuleInstaller::$kernel protected property The drupal kernel.
ModuleInstaller::$moduleHandler protected property The module handler.
ModuleInstaller::$moduleInstaller protected property The module installer.
ModuleInstaller::$root protected property The app root.
ModuleInstaller::$uninstallValidators protected property The uninstall validators.
ModuleInstaller::addUninstallValidator public function Adds module a uninstall validator. Overrides ModuleInstallerInterface::addUninstallValidator
ModuleInstaller::install public function Installs a given list of modules. Overrides ModuleInstallerInterface::install
ModuleInstaller::removeCacheBins protected function Helper method for removing all cache bins registered by a given module.
ModuleInstaller::uninstall public function Uninstalls a given list of modules. Overrides ModuleInstallerInterface::uninstall
ModuleInstaller::updateKernel protected function Updates the kernel module list.
ModuleInstaller::validateUninstall public function Determines whether a list of modules can be uninstalled. Overrides ModuleInstaller::validateUninstall
ModuleInstaller::__construct public function Constructs a new ModuleInstaller instance. Overrides ModuleInstaller::__construct