function Module::isInstalled
Overrides UpdaterInterface::isInstalled
1 call to Module::isInstalled()
- Module::getInstallDirectory in core/
lib/ Drupal/ Core/ Updater/ Module.php - Returns the directory where a module should be installed.
File
-
core/
lib/ Drupal/ Core/ Updater/ Module.php, line 48
Class
- Module
- Defines a class for updating modules.
Namespace
Drupal\Core\UpdaterCode
public function isInstalled() {
// Check if the module exists in the file system, regardless of whether it
// is enabled or not.
/** @var \Drupal\Core\Extension\ExtensionList $module_extension_list */
$module_extension_list = \Drupal::service('extension.list.module');
return $module_extension_list->exists($this->name);
}