1 system.updater.inc | public static ModuleUpdater::canUpdateDirectory($directory) |
Determine if the Updater can handle the project provided in $directory.
Parameters
string $directory: The full path to the package directory.
Return value
bool: TRUE if the project within the directory is supported by this updater.
Overrides BackdropUpdaterInterface::canUpdateDirectory
File
- core/
modules/ system/ system.updater.inc, line 89 - Subclasses of the Updater class to update Backdrop core, modules, themes, and layouts.
Class
- ModuleUpdater
- Class for updating modules using FileTransfer classes via authorize.php.
Code
public static function canUpdateDirectory($directory) {
return (self::getProjectType($directory) == 'module');
}