public function Module::isInstalled in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Updater/Module.php \Drupal\Core\Updater\Module::isInstalled()
Checks if the project is installed.
Return value
bool
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 54 - Contains \Drupal\Core\Updater\Module.
Class
- Module
- Defines a class for updating modules using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php.
Namespace
Drupal\Core\UpdaterCode
public function isInstalled() {
// Check if the module exists in the file system, regardless of whether it
// is enabled or not.
$modules = \Drupal::state()
->get('system.module.files', array());
return isset($modules[$this->name]);
}