function Module::canUpdateDirectory
Same name in other branches
- 9 core/lib/Drupal/Core/Updater/Module.php \Drupal\Core\Updater\Module::canUpdateDirectory()
- 8.9.x core/lib/Drupal/Core/Updater/Module.php \Drupal\Core\Updater\Module::canUpdateDirectory()
- 11.x core/lib/Drupal/Core/Updater/Module.php \Drupal\Core\Updater\Module::canUpdateDirectory()
Overrides UpdaterInterface::canUpdateDirectory
File
-
core/
lib/ Drupal/ Core/ Updater/ Module.php, line 61
Class
- Module
- Defines a class for updating modules.
Namespace
Drupal\Core\UpdaterCode
public static function canUpdateDirectory($directory) {
$info = static::getExtensionInfo($directory);
return isset($info['type']) && $info['type'] == 'module';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.