1 system.updater.inc | public static ThemeUpdater::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 158 - Subclasses of the Updater class to update Backdrop core, modules, themes, and layouts.
Class
- ThemeUpdater
- Class for updating themes using FileTransfer classes via authorize.php.
Code
public static function canUpdateDirectory($directory) {
return (self::getProjectType($directory) == 'theme');
}