1.20.x system.updater.inc public static CoreUpdater::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

modules/system/system.updater.inc, line 24
Subclasses of the Updater class to update Backdrop core, modules, themes, and layouts.

Class

CoreUpdater
Class for updating Backdrop core using FileTransfer classes via authorize.php.

Code

public static function canUpdateDirectory($directory) {
  return (self::getProjectType($directory) == 'core');
}